Click to See Complete Forum and Search --> : name/value pair in URL


kanuski
09-25-2003, 02:12 PM
I am sending a name/value pair through a URL. It is actually a Flash button that links to index.php?test=help. The pair shows up in the address box (http://..domain../index.php?test=help) but echoing the variable produces nothing on the page. I have tried http_get_vars but this gives me a message.
"Fatal error: Call to undefined function: http_get_vars()... "
I have also tried isset
echo isset("$test");
but this gives me a parse error
parse error, expecting `T_VARIABLE' or `'$''

There must be something I am missing but I do not know what to check next.

pyro
09-25-2003, 02:36 PM
You're problem is that $http_get_vars should be $HTTP_GET_VARS (or better $_GET if your server supports PHP 4.1.0 or greater).

kanuski
09-25-2003, 02:52 PM
Thanks
This works great
$test=$_GET["test"];
My problem was that the book I was reffering to (Beginning PHP4) did not have the $ symbol before the HTTP_GET_VARS
Thanks again

pyro
09-25-2003, 02:56 PM
You are very welcome. Glad we got it straightened out for you... :)