Re: w3c-compliant form-action parameters

From: Date: Fri, 24 Oct 2003 20:59:56 +0000
Subject: Re: w3c-compliant form-action parameters
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-167494@lists.php.net to get a copy of this message
This problem should be handled by modifying the php.ini. In my experience W3C is a whiney bitch that always gets it's way. Just throw this code on all your pages (or better yet, in a header) and the problem will go away. // The communists at W3C don't like the ampersand, so let's make sure it isn't used. ini_set('arg_separator.output', '&amp;'); Cheers, Nathan Taylor ----- Original Message ----- From: Burhan Khalid To: shiflett@php.net ; php-general@lists.php.net Sent: Friday, October 24, 2003 3:43 PM Subject: Re: [PHP] w3c-compliant form-action parameters Chris Shiflett wrote: > --- Timo Boettcher <spida@gmx.net> wrote: > >>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. > > > 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&amp;para2=val2" > > Your browser's HTTP request line will appear as: > > /mypage.php?para1=val1&para2=val2 > > So, by the time PHP sees it, everything is the same either way. My guess is > that you have some other problem. I agree with Chris. This is not a browser problem. However, there is a php.ini setting that will allow you to set the separator for get requests, but I suggest you investigate this problem further. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#167494) next »