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.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to