<?
if(isset($_COOKIE["tracker1"]))
{
$tracker1=++$_COOKIE["tracker1"];
}
//else
//{
setcookie('tracker1','1',time()+1);
//}
?>
<html>
<head>
<title>first COOKIE</title>
</head>
<body>
<?
echo "<p>";
echo "you have visited this page <font color=red>".$tracker1."</font> times.";
echo "</p>";
?>
</body>
</html>
if(isset($_COOKIE["tracker1"]))
{
$tracker1=++$_COOKIE["tracker1"];
}
//else
//{
setcookie('tracker1','1',time()+1);
//}
?>
<html>
<head>
<title>first COOKIE</title>
</head>
<body>
<?
echo "<p>";
echo "you have visited this page <font color=red>".$tracker1."</font> times.";
echo "</p>";
?>
</body>
</html>
if(isset($_COOKIE["tracker1"]))
{
$tracker1=++$_COOKIE["tracker1"];
}
else
$tracker1=1;
setcookie('tracker1',$tracker1,time()+1);
?>
<html>
<head>
<title>first COOKIE</title>
</head>
<body>
<?
echo "<p>";
echo "you have visited this page <font color=red>".$tracker1."</font> times.";
echo "</p>";
?>
</body>
</html>
.
.
else
{
$tracker1=1;
}
setcookie('tracker1',$tracker1,time()+1);
.
.
.