note 22720 added to reserved.variables
| From: | jon at pixelmajik dot com | Date: | Thu, 27 Jun 2002 13:51:23 +0000 |
| Subject: | note 22720 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32274@lists.php.net to get a copy of this message | ||
In response to the previous post:
If you received a POST var with the same name as a SESSION var, what would happen is quite simple:
If register_globals is off, then, as before, you would have $_POST['var'] and
$_SESSION['var'].
If register_globals is on, then you'd still have both $_POST['var'] and
$_SESSION['var'], and you'd also have $var. Which value $var has (post or session)
depends on variables_order, which defaults to EGPCS, in which case $var would be equal to
$_SESSION['var'].
--
http://www.php.net/manual/en/reserved.variables.php
http://master.php.net/manage/user-notes.php?action=edit+22720
http://master.php.net/manage/user-notes.php?action=delete+22720
http://master.php.net/manage/user-notes.php?action=reject+22720