Bug #17936: GET variables have no value
| From: | strelitz at kona dot net | Date: | Sun, 23 Jun 2002 22:47:57 +0000 |
| Subject: | Bug #17936: GET variables have no value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11856@lists.php.net to get a copy of this message | ||
From: strelitz@kona.net
Operating system: windows 2000 sp2 IIS 5.0
PHP version: 4.2.1
PHP Bug Type: IIS related
Bug description: GET variables have no value
Variables passed in via a GET are inexplicable undefined. I wrote a simple
script to receive a variable passed in through an URL, and print it.
The problem is the variable is undefined, though if I put a phpinfo()
function in the script, its output correctly shows my variable and its
value.
Contents of "test.php" script:
<html><head><title>test</title></head>
<body>
<?php
if (empty($test))
{ echo 'parameter "test" undefined';}
else
{ echo 'parameter "test" value is "' . $test . '"' ;}
phpinfo();
?>
</body>
</html>
URL call: http://localhost/test.php?test=hello
Output is "Parameter 'test' undefined"
I expected "Parameter 'test' value is 'hello'"
Though the phpinfo output shows "test=hello" in the QUERYSTRING variable
and "fff" in the _GET["test"] variable.
Am I missing something obvious?
--
Edit bug report at http://bugs.php.net/?id=17936&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17936&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17936&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17936&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17936&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17936&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17936&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17936&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17936&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17936&r=globals