I have tried using the session command with little sucess. I have two pages session1.php and session2.php and links back and forth between the two. The variable should increase each page but it doesn’t. I am not sre what I am doing wrong. Here is the code
<?php @session_start();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD></head><body>
<?php
if(isset($_SESSION['views']))
{
$ss=$_SESSION['views'];
$ss=$ss+1;
$_SESSION['views']=$ss;
}
else
$_SESSION['views'] = 1;
echo "views = ". $_SESSION['views'];
?>
<a href="session2.php">page 2</a>
</BODY>
</HTML>