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
> >
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php