Re: w3c-compliant form-action parameters
| From: | Timo Boettcher | Date: | Sat, 25 Oct 2003 13:49:32 +0000 |
| Subject: | Re: w3c-compliant form-action parameters | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167547@lists.php.net to get a copy of this message | ||
Hi Marek,
Nachricht vom Freitag, 24. Oktober 2003, 19:17:36:
> Whoops. The first sentense should be a question.
> Marek Kilimajer wrote:
>> It breaks your server side scripts. & should be translated to & by
>> the browser and never get to php.
>>
>> Timo Boettcher wrote:
>>
>>> 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
Yes. When I use
<form action="mypage.php?para1=val1¶2=val2" Method=post>
everything works ok, the form is submitted to the given address.
When I do
<form action="mypage.php?para1=val1&para2=val2" Method=post>
the form is submitted to the given address, too, and that includes the
& so that my application gets broken parameters and breaks.
Timo