Re: fun with register_globals
| From: | Adam Williams | Date: | Wed, 04 Sep 2002 14:22:35 +0000 |
| Subject: | Re: fun with register_globals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115174@lists.php.net to get a copy of this message | ||
use
$_GET[id]
in the place of $id for each instance. Like if you had $new = $id + 1
change it to $new = $_GET[id] + 1
and such...
Adam
On Wed, 4 Sep 2002, Kelly Meeks wrote:
> Hi folks,
>
> I might be late to the game with these questions, but I've just been bit by the
> register_globals=off situation.
>
> I'm trying to figure out the scope of what I need to change to accomodate
> register_globals=off, and I need some help.
>
> Looking around php.net, for example:
>
> 'If register_globals = on, the url
> http://www.example.com/test.php?id=3 will produce $id.'
> I can only assume with register globals being set to off, the reverse of this would be true.
> If so, how do I get the value of id in that case?
>
> Kelly
>