Re: PHP new super globals or something else??

From: Date: Wed, 29 May 2002 01:00:45 +0000
Subject: Re: PHP new super globals or something else??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99602@lists.php.net to get a copy of this message
On Tue, 28 May 2002, Gerard Samuel wrote: > Then the form is submitted to itself to insert into the database. When > its submitted, the script is looking for 'foo' and 'bar', but > they are now in the $_POST, and this is where it breaks for the other > guy, because the script is still looking for 'foo' and 'bar' in > the $_GET array. So in my case, it seems as if php is not behaving as > it should. You could use $_REQUEST, which include both get and post variables (as well as cookies, but that shouldn't matter unless you have overlapping namespace). miguel

« previous php.general (#99602) next »