I am getting this error when running my page through the W3C validator:
= in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value.
Here is the code that is causing this error:
$prevPage = "?main=men&category1=1&pagenum=$prevp"."&lowRowNum=$prev_page_low".
"&highRowNum=$prev_page_high";
print("<a class='left' href=$prevPage>".
"Previous Page</a> ");
I am not getting any error like this in any of my other PHP scripts , so I am guessing it is something specific I am doing wrong here?
Can anyone see why this code is causing this error?
I have researched this and read that it may be down to HTML special characters? I am not sure..
Thank you