Thread: Anyone know PHP
View Single Post
Old 03-06-2003, 09:52 AM   #2
Skunks
I thought I changed this.
 
Join Date: Nov 2002
Location: western nowhere, ny
Posts: 412
Newer installs of PHP have a config option (register_globals) off. When it is on, GET, POST, and cookie variables are automagically set. Load foo.php?bar=baz, and $bar will be 'baz' within the script. It was disabled by default to protect people with horribly atrocious coding standards from people sending them bogus value and faking authentication.

Use $_GET['id'].
Skunks is offline   Reply With Quote