PDA

View Full Version : XHTML & vB URLS


NTLDR
11-26-2002, 07:57 PM
I've been converting lots of my templates but have hundreds of errors coming up due to URLS, in particular the & and = in them, for example:


Line 96, column 88: entity was defined here
...hp?&action=signup"><img src="http://dev.ukw

It doesn't like the & in that URL as well as it getting funny about having action, userid, threadid etc as well.

Any ideas on how to get rid of this? Its very dificult trying to spot the code that is clearly wrong when all these errors are in the way!

Chris M
11-26-2002, 08:17 PM
Pray?:p

I have no idea unfortunately:(

Satan

Reverend
11-26-2002, 09:08 PM
add amp or amp; after the &

Erwin
11-26-2002, 09:20 PM
You cannot have a & after a ? - you use the ? for the first variable, and & for any other ones after that in a URL. Could that be the problem?

NTLDR
11-26-2002, 09:44 PM
Thats for the help guys, XHTML doesn't allow you to use & you must use &amp; in your URLS, so changing all them removed 300 odd errors and I've made the page vaild XHTML 1.0 Transitional now :D

Now I need to convert the vBcode :dead:

Reverend
11-26-2002, 09:50 PM
Thats why i suggested amp; because i had to use it for my backend.php xml feed. ;)