Re: viewing get/post variables

From: Date: Tue, 16 Apr 2002 13:50:00 +0000
Subject: Re: viewing get/post variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-93185@lists.php.net to get a copy of this message
On Tuesday 16 April 2002 21:39, Tyler Longren wrote: > You shouldn't have to do anything to php.ini to get that. You should have > a variable called $var1 on index.php already. > > Just: > if ($var1 != "") { > print "$var1"; > } > else { > print "var1 is empty"; > } > > Tyler Longren > Captain Jack Communications > tyler@captainjack.com > www.captainjack.com > > ----- Original Message ----- > From: "Martín Marqués" <martin@bugs.unl.edu.ar> > To: <php-general@lists.php.net> > Sent: Tuesday, April 16, 2002 8:29 AM > Subject: [PHP] viewing get/post variables > > > I can't remmeber how to configure php.ini so that if I get the URL > > > > http://localhost/index.php?var1=10 > > > > an echo $var1 will return 10 > > > > What I mean, is that _GET["var1"] exists, but I want $var1 to be > > available. in php.ini register_globals = on -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* squatcho, n.: The button at the top of a baseball cap. -- "Sniglets", Rich Hall & Friends */

« previous php.general (#93185) next »