Re: Problem in passing value directly from browser URL
| From: | Cybot | Date: | Mon, 07 Jul 2003 10:38:29 +0000 |
| Subject: | Re: Problem in passing value directly from browser URL | ||
| References: | 1 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-510@lists.php.net to get a copy of this message | ||
<?
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