Re: PHP not returning variables!
| From: | S. Kang | Date: | Sat, 10 Dec 2005 03:49:22 +0000 |
| Subject: | Re: PHP not returning variables! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26573@lists.php.net to get a copy of this message | ||
I guess register_globals = off in your php.ini (as default setting in PHP 5)
you got to use $_GET["var"] instead of $var.
Matt Firth wrote:
Hi, I have PHP 5 and Apache 1.3 on Windows 98. Its running OK, but whenever a global is specified in the address, it is not passed on to the script. For example: "Page.php?var=value" produces the same document as just "Page.php" when they should produce different documents. I know it is not a bug in my script as I've had the script running fine on my other server (PHP5, Apache 2.0, Windows XP Pro) Any suggestions? Many thanks in advance, Matt Firth.