Re: Problem in passing value directly from browser URL

[email protected] (Cybot) Mon, 07 Jul 2003 12:38:29 +0200
Newsgroups php.lang
Message-ID <[email protected]>
> <?
>     if ($a==1) {
>         echo "True.";
>     } else {
>         echo "False.";
>     }
> ?>
> 
> When I called the script http://localhost/show.php?a=1, the response is
> "False.". Is there any problem in my script or the setting of my Apache
> server is crashed?
> 
> Can anyone help me? Thank you.

if this is a new installation of php 4.3.x

then by default the register_globals are off

this means you need $_REQUEST['a'] to access your variable