Re: 4.2.1 Vars
| From: | Philip Olson | Date: | Sun, 26 May 2002 17:51:17 +0000 |
| Subject: | Re: 4.2.1 Vars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99304@lists.php.net to get a copy of this message | ||
> With register_globals OFF in your php.ini file, all of the user input is
> present in the _GET, _POST, _REQUEST, or _COOKIE array. With
> register_globals ON, then the variables are registered as regular variables.
> If you have a URL like page.php?id=1, then with them OFF, you have to use
> $_GET["id"] to get the value of one, with them ON, you can just use $id.
Just to be clear, $_GET['id'] will work fine with register_globals
on or off. In otherwords, these php predefined variables will
exist either way. Just like the older non-super ones, such as
$HTTP_GET_VARS.
Regards,
Philip Olson