Untitled

Anonymous
Plain Text
11/24/2022 5:07 AM
277 B
24
Indexable
Never
if (!isset($_COOKIE['count'])) { 
echo "Welcome! This is the first time you have viewed this page."; 
$cookie = 1;
setcookie("count", $cookie);
}else{
$cookie = ++$_COOKIE['count'];
setcookie("count", $cookie); 
echo "You have viewed this page ".$_COOKIE['count']." times."; 
}
Editor is loading...