Hi there
I'm currently updating my companies website to meet XHTML standards. Now I've got a series of links to php generated pages with various parameters being passed.
the HTML looks like this
<a href="http://prospectus.lmu.ac.uk/olp-php3/detail.php3?course_id=883&attendance=5" class="contactwhite">
now the XTML Validator throws up about 5 errors about the url. Is there something I need to add as an attribute to the link to make it XHTML compliant. Bear in mind I don't have any control over the address of the url, since it is an external link.
Thanks in advance
[Edit] Found the solution which is described here in theW3Cs XHTML document
C.12 Using Ampersands in Attribute Values
When an attribute value contains an ampersand, it must be expressed as a character entity reference (e.g. "&"). For example, when the href attribute of the a element refers to a CGI script that takes parameters, it must be expressed as http://my.site.dom/cgi-bin/myscript.pl?class=guest&name=user rather than as http://my.site.dom/cgi-bin/myscript.pl?class=guest&name=user.