Re: Session Variables and Posting
| From: | Kevin Stone | Date: | Fri, 04 Apr 2003 23:23:14 +0000 |
| Subject: | Re: Session Variables and Posting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142456@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Van Andel, Robbert" <RVanAndel@chartercom.com>
To: <php-general@lists.php.net>
Sent: Friday, April 04, 2003 4:00 PM
Subject: [PHP] Session Variables and Posting
> Is there a way that I can prevent session variables getting values from
> query strings. I want them to receive values only from posted forms.
>
>
> Robbert van Andel
You should be accessing the $_GET, $_POST and $_SESSION arrays directly
rather than relying on request vars to be parsed automatically. This will
allow you to be much more discriminatory in your code.
Read up on Predefined Variables in the manual..
http://www.php.net/manual/en/reserved.variables.php
HTH,
Kevin