Cannot seem to figure out this error...
could somebody please explain it...
<Notice:undefined index: Color in g:\\path\fulename.php on line 3>
all help is greatly appreciated!
jag
undefined index
Moderator: General Moderators
undefined index
here's the line where the error is occuring:
if($HTTP_COOKIE_VARS["Color"]=="be1f13"){$admin=true;} // Logged in as Admin.
thanks again
if($HTTP_COOKIE_VARS["Color"]=="be1f13"){$admin=true;} // Logged in as Admin.
thanks again
Do you check if even the cookie is set?
Code: Select all
if(isset($HTTP_COOKIE_VARSї"Color"])){
if($HTTP_COOKIE_VARSї"Color"]=="be1f13"){$admin=true;} // Logged in as Admin.
}undefined index
Jason
I inherited this proj from another consultant, so please forgive me if my questions are responses are kinda slow...
okay, i thin the cookie is set by the following code:
if(@file_exists($level2)){
setcookie ("Color", "be1f13");
}elseif(@file_exists($level1)){
setcookie ("Color", "f1f2f2");
}else{
setcookie ("Color", "ffffff");
}
$level1 and $level2 are different paths to different filnames.
I inherited this proj from another consultant, so please forgive me if my questions are responses are kinda slow...
okay, i thin the cookie is set by the following code:
if(@file_exists($level2)){
setcookie ("Color", "be1f13");
}elseif(@file_exists($level1)){
setcookie ("Color", "f1f2f2");
}else{
setcookie ("Color", "ffffff");
}
$level1 and $level2 are different paths to different filnames.