Validator + PHP Get Variables + &x; = trouble

liunx

Guest
OK, I have this form on my site, and the main <form> tag on my site is like this:<form action="index.php?b=<?php echo $post; ?>&action=postcomment" method="post"><br />
Only, when I go to validate it, it gives me major error messages because the & is not finished (as in, it assumed it was one of those things where you subsitute it for another character, like <). I can't use & because then it would try to submit the form to "index.php?b=<?php echo $post; ?>&action=postcomment", and it wouldn't work. Can someone give me an alternative for this?<br />
-Dan<!--content-->Ampersands in URI attribute values (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2">http://www.w3.org/TR/html401/appendix/n ... ml#h-B.2.2</a><!-- m -->)<!--content-->Sweet! I never knew I could use ";" instead of "&". Thanks Fang!<!--content-->
 
Back
Top