I am creating a class in which I check a cookie whether it has a value or not. When I start the script(in which the class is invoked) and the cookie is not set yet I get a Notice
. Does anyone can help. It is the same with $_GET and $_POST.Undefined index:...
This is the part which checks the Cookie:
Code: Select all
if($_COOKIE['myCookie']) {
}