1 / 5
Oct 2007

I have created a sales page that is W3C XHTML 1.0 Strict and CSS Validated on everything except for my buy now links. Any advice on a way to how to get around this. The link structure in and of itself is correct but the address for the checkout re-direct is tripping the validator. Any ideas?

  • created

    Oct '07
  • last reply

    Oct '07
  • 4

    replies

  • 1.0k

    views

  • 2

    users

  • 1

    link

  1. Remove the target="..." part
  2. Replace & with &
  3. Add an alt='buy this' to the image tag

I have been swamped and just had a chance to try the changes, which I hadn't been able to do when I posted last. I am using a box that I created so I didn't have the target section in the link. Here is the complete link that I am using



<a href="https://www.e-junkie.com/ecom/gb.php?i=37054&c=single&cl=5653"><img style="border:0;width:317px;height:83px" src="images/Short-Buy.jpg" alt="Buy Now!!!" /></a>



The errors that I am getting from W3C are variations of these:



Line 260, Column 59: cannot generate system identifier for general entity "c".



…www.e-junkie.com/ecom/gb.php?i=37054&c=single&cl=5653"><img style="border:0;w



Line 260, Column 60: reference not terminated by REFC delimiter.<!--refers to "="-->



…ww.e-junkie.com/ecom/gb.php?i=37054&c=single&cl=5653"><img style="border:0;wi



Line 260, Column 67: entity was defined here. <!--Refers to the "&"-->



…nkie.com/ecom/gb.php?i=37054&c=single&cl=5653"><img style="border:0;width:317



All of the errors are in regards to the dynamically generated redirect page's url. The specific items that are causing the issues are the "c" the "=" and the "&" which I know are needed because they are part of the actual url.



The frustrating part is that



1) The line in question is not structural markup per se, but a url associated with checkout



2) The link is valid and does what it is supposed to



So if the link url is valid and the overall structure of the link is correct, how do I prevent the href=" " section (to the valid link) from invalidating the XHTML?



I really do love the program, but I hand code sites to pass validation and this is the only hangup on two sites that I own. Any thoughts?