Re: Determine if variable is set
| From: | 1LT John W. Holmes | Date: | Tue, 11 Jun 2002 18:41:12 +0000 |
| Subject: | Re: Determine if variable is set | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101593@lists.php.net to get a copy of this message | ||
Just note that REQUEST accounts for COOKIE, POST, and GET data...the
settings for which overrides which are in php.ini.
---John Holmes...
----- Original Message -----
From: "Analysis & Solutions" <danielc@analysisandsolutions.com>
To: "PHP List" <php-general@lists.php.net>
Sent: Tuesday, June 11, 2002 10:25 AM
Subject: Re: [PHP] Determine if variable is set
> On Tue, Jun 11, 2002 at 09:06:34AM -0400, J. Anderson Scarbrough wrote:
> > possible to determine whether a variable is set with either $_POST or
$GET
> > without having to do:
> >
> > if(isset($_POST['foo']) || isset($_GET['foo']))
>
> if ( isset($_REQUEST['foo']) ) {
>
> --Dan
>
> --
> PHP classes that make web design easier
> SQL Solution | Layout Solution | Form Solution
> sqlsolution.info | layoutsolution.info | formsolution.info
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>