RE: [PHP] w3c-compliant form-action parameters

From: Date: Fri, 24 Oct 2003 17:14:31 +0000
Subject: RE: [PHP] w3c-compliant form-action parameters
Groups: php.general 
Request: Send a blank email to php-general+get-167461@lists.php.net to get a copy of this message
Hi, Timo. Why can't use use hidden fields instead of appending the values to the url? It would be the same to access them via $_GET['para1'] $_GET['para2] (unless you were using post as your method, in which case it would simply be $_POST['varname']) if they were on the url or in hidden fields. Why can't you make this switch? Also, have you tried using the % entity for ampersand (%26 if memory serves me correct) instead of &amp; or the literal ampersand? So instead of mypage.php?para1=val1&para2=val2 you would use mypage.php?para1=val1%26para2=val2. Cheers, Pablo -----Original Message----- From: Timo Boettcher [mailto:spida@gmx.net] Sent: Friday, October 24, 2003 9:59 AM To: php-general@lists.php.net Subject: [PHP] w3c-compliant form-action parameters Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my <FORM action="mypage.php?para1=val1&para2=val2"> Changing & to &amp; got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL to hidden fields or cookies/sessions is not an option. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#167461) next »