Forum Moderators: open

Message Too Old, No Replies

Validation Error

         

bigbobby73

7:17 pm on May 11, 2004 (gmt 0)

10+ Year Member



I went to validate my code and came across an error.

One of my URL's included the following text:

www.somewhere.com/faq.php?cat=1&q=4

Is a URL like this allowed? If not what do I have to do to make it valid html. [dtd Transitional 4.01]

At first it told me to escape the & but after making the change the code still didn't validate.

Any suggestions?

Noisehag

7:27 pm on May 11, 2004 (gmt 0)

10+ Year Member



Pretty sure you need to swap out the "&" with "&". I had the same thing come up on one of my pages recently and that fixed it for me.

Noisehag

7:29 pm on May 11, 2004 (gmt 0)

10+ Year Member



Duh, I just read the last part of your post. But that is what worked for me so no clue why that is not working for you. Make sure your href is enclosed in quotes maybe? dunno

bigbobby73

8:32 pm on May 11, 2004 (gmt 0)

10+ Year Member



After escaping the &amp, it got hung up with the q's in the url:

faq.php?cat=1&q=4

This is the error the W3C Validtor gave me:

cannot generate system identifier for general entity "q"

Not sure what to do with it....

DrDoc

8:46 pm on May 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Replace & with &

faq.php?cat=1&q=4

bigbobby73

9:45 pm on May 11, 2004 (gmt 0)

10+ Year Member



Thanks to the both of you.

I forgot I had that URL twice in my page and didn't escape the second URL.

- Bob