[FX.php List] $_REQUEST

Gjermund Gusland Thorsen ggt667 at gmail.com
Wed Jul 30 15:25:26 MDT 2008


You should really design for either or...

I bet there will be a stability issue with $_REQUEST in the long run,
or unpredictable hickups.

ggt

2008/7/30 Jonathan Schwartz <jschwartz at exit445.com>:
> 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
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list