PDA

View Full Version : Validating URL's With Characters


mark87
06-11-2005, 07:59 PM
I have spent ages converting a guestbook script so that it outputs clean HTML with CSS as opposed to tables. I'm very pleased with what I've done but would be even happier if the page would validate...! It doesn't because of characters such as '=', '&', and '?' in links on the page... how can I get round that?

JamieR
06-11-2005, 08:03 PM
Well instead of & in URLs you have to use & and so forth...

mark87
06-11-2005, 08:08 PM
Ah rite, ok thanks.

EDIT - Yup after changing all of the ampersands to '%26' I re-validated and it came out as valid. :)

JamieR
06-11-2005, 08:29 PM
cool...glad you got it sorted :)

mark87
06-11-2005, 08:48 PM
Well I did, but then I didn't - I used %26 because I couldn't get & to work.. but then I realised my links weren't working with %26, then I realised I didn't put the semi-colon on the end... :rolleyes: Ah well, sorted now!