[FX.php List] $_REQUEST

Jonathan Schwartz jschwartz at exit445.com
Wed Jul 30 15:17:01 MDT 2008


Hi Folks,

I've been rethinking how to handle forms and validation.

Sometimes the data being validated comes from a POST and sometimes a 
GET, depending on whether the data was generated from a Form or a 
link.

Up until now, I have had to deal with both cases ...if($_GET[] ) and 
if($_POST).

I just realized that I can use $_REQUEST and not worry which type the 
data came from.

Is this a valid way to go?  Something tells me that $_REQUEST isn't.

Thanks

J
-- 
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-370-5011


More information about the FX.php_List mailing list