Views=1Array ( [0] => 1 ) PHP experiments

jimTansey.info

 

Internet Consulting etc.

18
PHP in an include???!18

Session data
pageviews=1Array ( [0] => 1 )
First Name
Previous(Includes)|(Again)|Next
<?php session_start(); 
if (isset($_SESSION['views']))
$_SESSION['views']=$_SESSION['views']+1;
else
$_SESSION['views']=1;
echo "Views=".$_SESSION['views'];
?>
<?php; 
include("header.php"); 
?>

Session data
<?php; echo "pageviews=".$_SESSION['views']; if (isset($_POST['fname'])) { echo "Hi, ".$_POST['fname']; $_SESSION['fname']=$_POST['fname']; } ?>