PHP Cookie Assignment
Hi am not able to get correct output for the third one.
Whenever page refreshes count becomes 1 but it doesn't increment after that.
Please help me in this.
<?php
if(!isset($_COOKIE["UserRef"]))
{
setcookie("UserRef","Ref",time() 3600);
//$count=0;
echo "New";
}
else{
//$count=$count 1;
echo "Refresh";
}
/*if ($_GET["count"]== "no") {
echo "Refresh";
} */
?>
<html>
<head></head>
<body>
<meta HTTP-EQUIV="refresh" CONTENT="5;URL=thirdRefr.php">
<?php
$count=$_COOKIE["UserRef"] 1;
echo $count; ?>
</body>
</html>