Re: w3c-compliant form-action parameters
| From: | Timo Boettcher | Date: | Sat, 25 Oct 2003 08:38:56 +0000 |
| Subject: | Re: w3c-compliant form-action parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167532@lists.php.net to get a copy of this message | ||
Hi Pablo,
Nachricht vom Freitag, 24. Oktober 2003, 19:14:31:
> 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?
You can't set a bookmark to include the value of a hidden field, but
with a url-param, it is possible.
> Also, have you tried using the % entity for ampersand (%26 if memory
> serves me correct) instead of & or the literal ampersand?
> So instead of mypage.php?para1=val1¶2=val2 you would use
> mypage.php?para1=val1%26para2=val2.
I'll try that.
> 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¶2=val2">
> Changing & to & 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
Timo