error with null $HTTP_GET_VARS['field']
| From: | Logan McKinley | Date: | Tue, 17 Jun 2003 18:55:11 +0000 |
| Subject: | error with null $HTTP_GET_VARS['field'] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151881@lists.php.net to get a copy of this message | ||
right now if a the 'field' key does not exist at all in the querystring it
returns the following error:
Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on
line 3
I think i can use the empty function but i pass in 11 different variables
and it seems like there must be a more eligant way to prevent the error then
with 11 individual if statements. Is there a way in which it will return a
value even if the key does not exist in the querystring.
Thanks in advance,
~Logan