Bug #11059 Updated: PHP does not register GET variables $HTTP_GET_VARS is empty. POST works OK.
| From: | cardinal@php.net | Date: | Thu, 24 May 2001 16:48:58 +0000 |
| Subject: | Bug #11059 Updated: PHP does not register GET variables $HTTP_GET_VARS is empty. POST works OK. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56641@lists.php.net to get a copy of this message | ||
ID: 11059
Updated by: cardinal
Reported By: bub@seznam.cz
Old-Status: Open
Status: Feedback
Bug Type: Variables related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
The system speed wouldn't impact behavior, no.
Your script refers to $data['n_id'] though, not $data['id']. Let's remove
any confusion and work with a very basic script:
<a href="<? echo $PHP_SELF ?>"?getvariable=working>Click here</a>
Getvariable is: <? echo $HTTP_GET_VARS['getvariable'] ?>
Try that one out.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-24 03:22:17] bub@seznam.cz
valiables_order is set to EGPCS. I tried EPCSG but it did not work either.
$data["id"] was non empty.
The computer in question is i486 with 12 MB RAM. Could that be a problem?
---------------------------------------------------------------------------
[2001-05-23 17:54:47] cardinal@php.net
Was $data['n_id'] non-empty in board.php?
Your script works fine for me when I add $data['n_id'] = 1;
---------------------------------------------------------------------------
[2001-05-23 16:48:03] sniper@php.net
What is the setting for this directive in your php.ini:
variables_order
--Jani
---------------------------------------------------------------------------
[2001-05-23 13:39:30] bub@seznam.cz
Everything else seems to be OK except the GET method
Thanks in advance for follow up the problem.
---------------------------------------------------------------------------
[2001-05-23 13:35:13] bub@seznam.cz
the link is generated in one document like this:
board.php
echo("<a href="drop.php?id=" . urlencode($data["n_id"])
.""> DROP</a>n");
.
and in drop.php?id=1 variable $HTTP_GET_VARS is not set.
if (isset($HTTP_GET_VARS["id"])){
$n_id = $HTTP_GET_VARS["id"];
}else{
$n_id = 0;
}
This worked on WinNT5.0 with apache 1.3.14 and PHP 4.0.4pl1 as a module.
I've compiled apache and PHP as a static module.
./cofigure --with-mysql --with-apache=../apache_1.3.19
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11059&edit=2