passing variable via url
| From: | Kansas Territory | Date: | Mon, 05 Mar 2001 16:43:40 +0000 |
| Subject: | passing variable via url | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42631@lists.php.net to get a copy of this message | ||
using PHP 3.x on Linux, I've always been able to pass along a variable like
http://www.domain.com/index.php3?foo=bar
and then I could print out this with something like
echo $foo;
would print out "bar"
I've recently installed the latest PHP4 onto a Windows2000 server, I'm
trying the same thing here, a simple test, and
echo $foo;
gives me nothing
however including a PHPINFO() on the page displays this:
HTTP_GET_VARS["foo"] bar
I'm I missing something here ?
Kevin
--------------------------------------------------------------------
Kevin Heflin | ShreveNet, Inc. | Ph:318.222.2638 x103
VP/Production | 333 Texas St #175 | FAX:318.221.6612
kheflin@shreve.net | Shreveport, LA 71101 | http://www.shreve.net
--------------------------------------------------------------------