Re: Using $_GET for POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This page can help you understand them better:
http://us2.php.net/manual/en/language.variables.superglobals.php

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Edward Diener wrote:
> In handling an HTTP POST request I came across some PHP code, which I
> need to modify for my own purposes, which has code like this:
>
> 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>
>
> ?
>
> Is the $_GET possibly being used to check for an 'xxxxx' parameter
> being passed in the query part of the URL ?
>
> I am fairly new to PHP so I am trying to understand how $_GET differs
> from $_POST. Thanks !
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux