I still don't get it
| From: | Carsten Gehling | Date: | Thu, 25 Jan 2001 17:44:40 +0000 |
| Subject: | I still don't get it | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36669@lists.php.net to get a copy of this message | ||
I've brought this up in reference to other questions but haven't got a
straight answer.
Suppose I've created a session variable: session_register("foo") and receive
a posted form with the input field "bar".
If register_globals = off, I can only access the form-field like this:
$HTTP_POST_VARS["bar"]
and the session-variable like this:
$HTTP_SESSION_VARS["foo"]
If I set register_globals = on, the form-field can be accessed in two ways:
$bar
and the previous
$HTTP_POST_VARS["bar"]
but the session-variable only with:
$foo
and a new array $GLOBALS["foo"]
My question: What happened to $HTTP_SESSION_VARS? And why, since
$HTTP_POST_VARS is still accessible?
- Carsten