Re: Undefined index:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux