Re: Undefined index:

From: Date: Sat, 16 Jun 2007 14:42:10 +0000
Subject: Re: Undefined index:
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-257177@lists.php.net to get a copy of this message
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?
The isset function does not give an error if you pass it a non-existant variable. Are you sure it's this line that's causing the undefined index error? -Stut

« previous php.general (#257177) next »