|
Posted by J.O. Aho on 11/11/06 08:36
affiliateian@gmail.com wrote:
> We moved web hosts recently and had to use htaccess to turn on Register
> Global to ensure that a few of our old scripts worked properly.
>
> php_flag register_globals on
>
> If we were to turn this off, how do we make PHP recognize a hidden tag
> from a form?
>
> Originally, our PHP script could recognize a hidden field via:
>
> if ($variable == "yes")
It depends on what way you method for the form (get/post),
Post:
if($_POST['variable'] == "yes")
Get:
if($_GET['variable'] == "yes")
If you don't know/care or allow different methods:
if($_REQUEST['variable'] == "yes")
For more information about reserved variables, see
http://www.php.net/manual/en/reserved.variables.php
//Aho
[Back to original message]
|