RE: [PHP] Strange problem passing variables
| From: | Hunter, Ray | Date: | Fri, 22 Mar 2002 15:04:23 +0000 |
| Subject: | RE: [PHP] Strange problem passing variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89694@lists.php.net to get a copy of this message | ||
Try using $_GET['varnamehere']
Ray Hunter
-----Original Message-----
From: Jean-Arthur Silve [mailto:jeanarthur@eurovox.fr]
Sent: Friday, March 22, 2002 8:05 AM
To: php-general@lists.php.net
Subject: [PHP] Strange problem passing variables
Hi,
A friend of me use PHP4.1.2 on Linux+Apache
Here is the problem :
He pass a parameter using GET method :
http://www.domain.com/test.php?TESTV=1234
test.php is :
<?php
echo $TESTV."<BR>";
echo $HTTP_GET_VARS["TESTV"]."<BR>";
phpinfos();
?>
But in the script all variables are empty ($TESTV and
$HTTP_GET_VARS["TESTV"]).
phpinfos() shows QUERY_STRING environment variable is empty...
any idea ??
Thank you !
----------------------------------------------------------------
EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr
----------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php