Re: Problem with HTTP variables
| From: | jeffrey_n_Dyke at Keane dot com | Date: | Tue, 25 May 2004 21:29:15 +0000 |
| Subject: | Re: Problem with HTTP variables | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-13554@lists.php.net to get a copy of this message | ||
>I've installed PHP on my Apache 2.0 for Windows XP, and I'm having a wierd
>problem where php works like it's supposed to except for that it won't
read
>any variables I try to feed it via HTTP, like index.php?page=pictures. it
>just thinks I left page blank.
>Is this an apache problem, or is this a PHP problem, and can anybody help
me
>fix it?
This is most likely a register_globals problem. Are you referencing the
variable by $variable_name or $_GET['variable_name'] which in your case is
$_GET['page']
You should use the $_GET/$_POST/$_SESSION/$_COOKIE method. You can also
use $HTTP_POST_VARS, although i perfer the former.
HTH
Jeff