HTTP request parameters do not populate variables
| From: | Slava Zinkovski | Date: | Sun, 01 Feb 2004 14:37:38 +0000 |
| Subject: | HTTP request parameters do not populate variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176501@lists.php.net to get a copy of this message | ||
Hi, everybody!
I've just installed PHP on my workstation and it seems as I have some trouble. The simplest code does not work! Here it is:
<?
print_r($HTTP_GET_VARS);
print("param = " . $param);
?>
I run it with URL like this http://localhost/myApp/test.php?param=qqq:
I expect it to print 'param=qqq' string, though it does not! :(((
Here is the output:
Array ( [param] => qqq )
Notice: Undefined variable: param in d:\phptest\test.php on line 4
param =
Though, the script produces expected output when uploaded to a production server.
Where is the bug? Any ideas are greatly appreciated.