Re: [PHP] Using $_GET for POST
- From: mrsquash2@xxxxxxxxx ("Dan Shirah")
- Date: Thu, 31 Jul 2008 08:25:35 -0400
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.
- References:
- Using $_GET for POST
- From: Edward Diener
- Using $_GET for POST
- Prev by Date: Re: [PHP] Back to Basics - Why Use Single Quotes?
- Next by Date: Re: [PHP] Back to Basics - Why Use Single Quotes?
- Previous by thread: Re: [PHP] Using $_GET for POST
- Next by thread: PHP email
- Index(es):