PDA

View Full Version : providing GET parameters in <a>


Satal Keto
03-19-2007, 09:47 PM
I am creating a website and one of the things that I want to make sure I am doing with this website is having it 100% valid xhtml.
My website has a message system in it which has different parts (inbox, outbox and new message).
I am specifying which the page is supposed to do through the URL (GET method).
But because I am linking to that using <a> it is coming up as invalid xhtml.
I was wondering whether anyone knows how I would be able to provide the required GET parameters through <a>.

Thanks for any help in advance
Satal Keto

Nightfire
03-19-2007, 10:00 PM
You can use querystrings in an anchor tag. Just remember to change & to &amp;

<a href="page.php?yaksays=ooh&amp;cowsays=ahh">Link</a>

Satal Keto
03-19-2007, 10:16 PM
Thank you :D