this is my first post
My Code: just for the variable increment is:
<body>
<?
static $view=0;
function oneplus($view)
{
$view++;
echo "views = $view<br />";
}
?>
<?php
if(isset($_POST["submit"]))
{
echo "views = $view<br />";
$value=$_POST["value"];
$value++;
oneplus($view);
$name=$_POST["name"];
if(trim($name)==""){
echo"please fill in name.<br />";
}
}
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="hidden" name="value" value="<? echo"$value";?>" />
<input type="text" name="name" />
<input type="submit" name="submit" id="submit" />
</form>
</body>