hello everyone,
This is my code:
if($i==1)
{
echo "first time";
$i++;
echo '<script language="javascript">document.location="'.basenam e($_SERVER['PHP_SELF']).'";</script>'; //it reloads my page
}
if($i==2)
{
echo "second time";
$i++;
echo '<script language="javascript">document.location="'.basenam e($_SERVER['PHP_SELF']).'";</script>';
}
if($i==3)
{
echo "third time";
$i++;
echo '<script language="javascript">document.location="'.basenam e($_SERVER['PHP_SELF']).'";</script>'; //it reloads my page
}
i want that how can i maintain the incremented value of variable $i after each page reload.so that i can execute specific code in if statement.
thanks in advance...