Re: FW: GET not working

From: Date: Fri, 07 Feb 2003 18:21:35 +0000
Subject: Re: FW: GET not working
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-9986@lists.php.net to get a copy of this message
You need to use $_GET['mode'], not $mode, unless global_vars is turned on within the php.ini file. -- Ryan Williams On Fri, 7 Feb 2003, Pennington, Tim wrote: > > Apache 1.3.27 > > PHP 4.3.0 > > WNT > > > > After installing the above software components I can't the the GET > > machanism to work using the "?" as part of the URL. Simple example: > > > > Create a file called test.php and enter following code: > > > > <? > > > > print "<a href=test.php?mode=x>Make text appear below</a>"; > > > > if ($mode=='x') > > > > { > > > > print "Success!\n"; > > > > } > > > > ?> > > > > When you load the page you should see a link, that when selected, displays > > the text "Success!" > > > > I do NOT see the "Success" text on my system. > > > > Please can you help understand where the problem lies. > > > > Thanks and regards, > > > > Tim > > > >

« previous php.install (#9986) next »