Not dirrectly related to sessions, but you might enjoy the following piece
of code:

$f = 'HTTP_' . $HTTP_SERVER_VARS["REQUEST_METHOD"] . '_VARS';


Then if someone submits the field "username" you can refer to it as
${$f}["username"], and it will work if they used POST or GET.


--
Plutarck
Should be working on something...
...but forgot what it was.


""Barraud, Stéphane"" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I'm using PHP 4.0.4pl1 on windows as CGI.
> I try to avoid to use register_globals = On.
> In my script I use only $HTTP_*_VARS variables to access forms fields.
>
> The problem is when I set register_globals = Off in php.ini, the session
is
> not working any more, loosing session variables content.
>
> Should I consider this as a bug ?
>
> Steph
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to