Re: Undefined index:
| From: | Al | Date: | Sat, 16 Jun 2007 16:23:41 +0000 |
| Subject: | Re: Undefined index: | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257181@lists.php.net to get a copy of this message | ||
There is obviously something else wrong. That's the purpose of isset();
Comment out your line and see what happens.
I'd guess the real problem is later in your code when you are trying to do something with $HTTP_COOKIE_VARS["LoggedIn"] even though your isset() test said it didn't exist.
WeberSites LTD wrote:
I'm using this code to check if a cookie has a value :If(!IsSet($HTTP_COOKIE_VARS["LoggedIn"])) .... In case that this cookie is not set, how can i avoid the Undefined index: line in the error log? berber