Re: pb with register_globals

From: Date: Fri, 13 Apr 2001 03:03:26 +0000
Subject: Re: pb with register_globals
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6694@lists.php.net to get a copy of this message
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"" <stephane.barraud@esc.messagemedia.com> wrote in message news:213433443777D41197FB00B0D020D94E085286@mmemail.0mme.com... > 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 > >

« previous php.windows (#6694) next »