note 29829 added to reserved.variables

From: Date: Wed, 26 Feb 2003 11:14:18 +0000
Subject: note 29829 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-44547@lists.php.net to get a copy of this message
HTTP_GET_VARS or HTTP_POST_VARS transport the values between the pages, but in the arrival page through their associative values are created new variables with as name the HTTP... key and as value the HTTP...[$key] value. Then you can modify the HTTP... values without variable modifying. Example: <? unset($HTTP_GET_VARS["foo"]); // try to comment this line print "<br>"; print $foo; print "<br>"; print $HTTP_GET_VARS["foo"]; print "<br>"; $foo = 4; ?> <a href=a.php?foo=<?print $foo;?>>link</a> -- http://www.php.net/manual/en/reserved.variables.php http://master.php.net/manage/user-notes.php?action=edit+29829 http://master.php.net/manage/user-notes.php?action=delete+29829 http://master.php.net/manage/user-notes.php?action=reject+29829

« previous php.notes (#44547) next »