Re: Using $_GET for POST

From: Date: Thu, 31 Jul 2008 12:25:35 +0000
Subject: Re: Using $_GET for POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-277524@lists.php.net to get a copy of this message
> > if ( ! (isset($_GET['xxxxx']) && $_GET['xxxxx'] == 20) ) > { > // Do something by returning an error > } > > Can this ever be correct when the form looks like: > > <form ENCTYPE="multipart/form-data" ACTION="" > METHOD="POST"> > <input NAME="SomeFile" TYPE="file"> > <input VALUE="submit" TYPE="submit"></form> > > ? I sometimes do things similar to this. I normally use it when I am opening a new page via a javascript function and want to pass several values to use or check in the new page.

« previous php.general (#277524) next »