|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17936 GET variables have no value
Submitted: 2002-06-23 18:47 UTC Modified: 2002-06-23 18:56 UTC
From: strelitz at kona dot net Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.2.1 OS: windows 2000 sp2 IIS 5.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
43 - 6 = ?
Subscribe to this entry?

 [2002-06-23 18:47 UTC] strelitz at kona dot net
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:

  if (empty($test))
    { echo 'parameter "test" undefined';}
    { echo 'parameter "test" value is "' . $test . '"' ;}

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?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-23 18:50 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
 [2002-06-23 18:56 UTC] strelitz at kona dot net
Thanks for your lightning-fast response!
I changed it and it worked.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 08:01:28 2024 UTC