Re: Variables aren't being passed to php page

From: Date: Sun, 14 Jul 2002 09:05:17 +0000
Subject: Re: Variables aren't being passed to php page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107591@lists.php.net to get a copy of this message
This is no problem. Since PHP 4.2 register_globals is disabled by default (in prior versions it was enabled). Either you can use the $_POST, $_GET etc. arrays or simply set register_globals in the php.ini to "On" ! -micha Mike Heffner wrote: > Hi, > > I've recently upgraded from PHP 4.0.4p11 -> PHP 4.2.1, but now there seems > to be a problem that variables from POST/GET are not being passed to the > PHP page. For example, with the following file test.php, using the URL > 'test.php?mid=1' displays 'nope'. > > <? > if (isset($mid)) > echo "$mid"; > else > echo "nope"; > ?> > > Is this a known problem, or is this some configuration issue? > > Thanks for any help, > > Mike

« previous php.general (#107591) next »