I created a cookie.
Now I want to check for the existance of that cookie
function check() {
if (isset($_COOKIE['beggining']))
{
$valid=0;
}
}
$valid is never set to 0...
This is how I created the cookie
function record() {
setcookie("beggining", "beggining", time()+3600);
ob_end_flush();
}
Someone plz help, I don't know how to resolve this!
Thank you in advance, I am so lost