This is a very simplistic page. I CAN NOT get it working though. By working I mean I can't get the second page to display.
<?
function pagecount($pagecounttemp)
{
$pagecounttemp=$pagecounttemp+1;
echo $pagecounttemp;
return $pagecounttemp;
}
?>
<?
if ($pagecount<=0)
{
?>
<HTML>
<head>
<Title>Test, this is page one.</title>
</head>
<form method=post value=test.php>
<?
$pagecount=$pagecount+0;
?>
<? pagecount($pagecount);
echo "<input type=hidden name=pagecount value=$pagecount>";
?>
<Input type=text value="Pagecount: <? echo $pagecount; ?> ">
<Input type=submit value="Stupid Submit button" onSubmit=" ">
<Input type=reset value="Stupid Reset button">
</form>
<Body>
</body>
</HTML>
<?
}
else
{
?>
<HTML>
<head>
<Title>Test, this is page two.</title>
</head>
<Body>
<P><B>PageCOUNT: <font color=red>
<?
echo $pagecount;
?>
</font>
</B>
</P>
</body>
</HTML>
<?
}
?>
no matter what I do it won't go to that second page. I have tried putting if (!($submit)) and it still won't go to the same page when I submit the page. any help would be GREATLY Appreciated.
Chris