#19625 [Opn->Bgs]: QUERY_STRING returns as NULL
| From: | iliaa@php.net | Date: | Thu, 26 Sep 2002 21:53:01 +0000 |
| Subject: | #19625 [Opn->Bgs]: QUERY_STRING returns as NULL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20490@lists.php.net to get a copy of this message | ||
ID: 19625
Updated by: iliaa@php.net
Reported By: mwhited@mail.eastland.k12.oh.us
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: Linux Slackware 8.1
PHP Version: 4.2.3
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
QUERY_STRING only contains the data passed via GET. So, when you submit
a form via POST method or click on a link that does not have any
variables passed via GET then obviously the QUERY_STRING will be
blank.
If this is not the case please re-open the bug with a correct PHP
version.
Previous Comments:
------------------------------------------------------------------------
[2002-09-26 15:20:54] mwhited@mail.eastland.k12.oh.us
I am Using PHP 1.2.3 and Apache 1.3.26
When you submit a form or click on a link the $QUERY_STRING is being
nulled. I figured out a simple (but unsecure) work around.
-WORK AROUND-
Create a file with the contents below
<? $QUERY_STRING=$HTTP_SERVER_VARS['QUERY_STRING']; ?>
Then add that file to the value auto_prepend_file in the php.ini and
set the register_globals = on in the same file
This fixed my Problem but I hope there is a better solution
-Matthew Whited
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19625&edit=1