Re: foo.php?bar=cheese

From: Janwillem Borleffs (jw_at_jwscripts.com)
Date: 03/27/05


Date: Sun, 27 Mar 2005 00:29:29 +0100

Chris B wrote:
> My problem is, I can't pass parameters to the page via the browser on
> localhost. That is, I can type index.php?var=value in the browser, but
> it doesn't get processed- echo $var comes up as null.
>

That's because your environment has the register_globals directive disabled.

> When I send it off to the webhost and run it from there, it works
> fine.

That's because the webhost has the register_globals directive enabled.

Read: http://www.php.net/register_globals

JW



Relevant Pages