Re: w3c-compliant form-action parameters
| From: | Chris Shiflett | Date: | Sat, 25 Oct 2003 16:28:27 +0000 |
| Subject: | Re: w3c-compliant form-action parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167568@lists.php.net to get a copy of this message | ||
--- Timo Boettcher <spida@gmx.net> wrote:
> > I find that *very* hard to believe. I'm not aware of any browser
> > that mishandles HTML entities. Basically, when you say this:
> >
> > action="/mypage.php?para1=val1&para2=val2"
> >
> > Your browser's HTTP request line will appear as:
> >
> > /mypage.php?para1=val1¶2=val2
>
> That seems to be different here. With IE and opera, I get
> "mypage.php?para1=val1&para2=val2" as the page address.
I'm curious now. Try this page:
http://shiflett.org/dev/php-general/ampersand.php
View source and make sure this matches your situation. When I click the submit
button, the next page looks like this for me:
GET
Array
(
[foo] => 1
[bar] => 2
)
POST
Array
(
[blah] => 3
)
Also, the URL I go to is:
http://shiflett.org/dev/php-general/ampersand.php?foo=1&bar=2
Note that the HTML entity was decoded by my browser. What are your results?
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp