Hello,
I am new to web designing and testing with frames. I have the following in the left and right frames of my test page:
left:
<a href="test.php?full=Go" target="test">Go</a><br>
right:
<CENTER>
<FORM METHOD=POST ACTION=<?php echo $PHP_SELF?>>
<?php
$i = $HTTP_POST_VARS["extent"];
if(isset($HTTP_POST_VARS["full"]))
{
++$i;
}
if(isset($_GET["full"]))
{
++$i;
}
echo $i;
?>
<INPUT TYPE=SUBMIT NAME="full" VALUE="GO">
<INPUT TYPE=HIDDEN NAME="extent" VALUE="<?php echo $i?>">
</CENTER>
The problem is when I use the button on the same php page it increments successfully. When I click the link in the other frame, it start $i from 0 again, making it 1. every time it is the same thing. it is like the "memory" of the php doesnot work, which is the HIDDEN line at the end.
Does anyone have any idea how to give the php a "memory" when triggered from the other frame?
Thanks in advance...
Murat Isik