[FX.php List] $_REQUEST

Jonathan Schwartz jschwartz at exit445.com
Wed Jul 30 15:41:55 MDT 2008


Hmmmm... that's what I suspected.

The more I try to be more efficient by using a single page to handle 
multiple responses, the more complicated the handling gets.   I guess 
that's the price, huh?

J

At 11:25 PM +0200 7/30/08, Gjermund Gusland Thorsen wrote:
>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
>>
>_______________________________________________
>FX.php_List mailing list
>FX.php_List at mail.iviking.org
>http://www.iviking.org/mailman/listinfo/fx.php_list


-- 
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