Re: php3 / php4 vars - Submitted form doesn't work

From: Date: Wed, 29 May 2002 15:25:14 +0000
Subject: Re: php3 / php4 vars - Submitted form doesn't work
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-99761@lists.php.net to get a copy of this message
Le Mercredi 29 Mai 2002 16:55, 1LT John W. Holmes a écrit : > It's probably your register_globals setting. with it off, you have to use > the HTTP_*_VARS or _* variables where * is GET, COOKIE, or POST. With it > on, those are still available, but you also have the form element names > registered. > > <input type=text name=foo> > > With register globals on, you have a variable $foo that contains the user > input. This is probably how you were doing it before. With a new > installation of PHP4, register_globals defaults to off, however. I tought about it, but $foo instead $_POST["foo"] is still working on another ".php" script, confusing me .... What's happening ??? > > ---John Holmes... > > ----- Original Message ----- > From: "Nicolas Costes" <nicolas.costes@laroche.univ-nantes.fr> > To: "1LT John W. Holmes" <holmes072000@charter.net> > Cc: "PHP ((E-mail))" <php-general@lists.php.net> > Sent: Wednesday, May 29, 2002 10:32 AM > Subject: Re: [PHP] php3 / php4 vars - Submitted form doesn't work > > > Le Mercredi 29 Mai 2002 16:15, vous avez écrit : > > > Not really. You still pass variables through GET, POST, or COOKIE data. > > How > > > > you access the value is different based on your configuration and the > > PHP > > > > version. It's different for different versions of PHP4, too. Do you > > > have > > a > > > > specific question or problem? > > > > Well My first mail ( "Submitted form doesn't work") told all the (long) > > story... > > But i was too long, i had no answer ! > > > > So, shortly, a script that worked for a year now (.php3) is not working > > anymore, since i renamed it (.php) and added 2 PHP4 functions (ob_start, > > ob_end) .... > > My provider recently upgraded to PHP4.xxx, that's why i decided such a > > change. > > > There's a form, four inputs, and when i post the form, the variables are > > not > > > set in the target script (well, the same script :-) .... > > > > More (too much) details in my previous mail "Submitted form doesn't work" > > . > > > Thanx > > > > -- > > ( °> Nicolas Costes > > //\\ IUT de La Roche / Yon > > / \/ ) Nicolas.costes@iut-laroche.univ-nantes.fr > > `-<< http://luxregina.free.fr > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php -- ( °> Nicolas Costes //\\ IUT de La Roche / Yon / \/ ) Nicolas.costes@iut-laroche.univ-nantes.fr `-<< http://luxregina.free.fr

« previous php.general (#99761) next »