note 23417 added to reserved.variables

From: Date: Thu, 18 Jul 2002 03:06:45 +0000
Subject: note 23417 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-33229@lists.php.net to get a copy of this message
If you have a query string like index.php?foo=5, then rather than using $_GET["foo"], just use $foo instead. PHP appears to automatically declare variables for all of the query string parameters. Probably works for $_POST too but I haven't tried. -- http://www.php.net/manual/en/reserved.variables.php http://master.php.net/manage/user-notes.php?action=edit+23417 http://master.php.net/manage/user-notes.php?action=delete+23417 http://master.php.net/manage/user-notes.php?action=reject+23417

« previous php.notes (#33229) next »