"Notice: Undefined index"
Posted: Mon Apr 12, 2004 11:47 am
Just wondering how i can get rid of this error - "Notice: Undefined index: user" when i use the following code:
user is a variable in my cookie and xss_check is a method to check for xss in the IO class. Whatever i try i just cant seem to remove the Notice message - and i dont really want to just hide the error messages.
Thanks.
Code: Select all
$this->username = strtolower(IO::xss_check($_COOKIE['user']));Thanks.