Re: variables
| From: | Jason Wong | Date: | Sat, 03 Aug 2002 06:16:14 +0000 |
| Subject: | Re: variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110938@lists.php.net to get a copy of this message | ||
On Saturday 03 August 2002 12:55, Bob Lockie wrote:
> >$_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus
> > you cannot differentiate where the value came from.
> >
> >If you want to be sure, be specific and use one of $_GET/$_POST/$_COOKIE.
>
> There is no reason other than knowing where it came from to choose one
> method over the other? For *most* applications it would seem that using
> REQUEST is better planning.
Knowing exactly where your variables are coming from ensures the integrity of
your code and protects it from malicious users feeding it bogus values.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
You feel a whole lot more like you do now than you did when you used to.
*/