[PHP] Strange problem passing variables

2002-03-22 Thread Jean-Arthur Silve

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




RE: [PHP] Strange problem passing variables

2002-03-22 Thread Hunter, Ray

Try using $_GET['varnamehere']

Ray Hunter

-Original Message-
From: Jean-Arthur Silve [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 22, 2002 8:05 AM
To: [EMAIL PROTECTED]
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