When i click on Reserved, $page = Reserved. But when I click on another form like GO the $page value will return back to Schedule.
I want to retain the value of $page if it is click on Reserved and click GO $page is still equal to Reserve.
<?php
if(isset($_POST['page'])){
$page = $_POST['page'];
}
else $page = 'Schedule';
echo $page;
?>
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
<input type="submit" name="page" value="Schedule" />
<input type="submit" name="page" value="Resereved" />
</form>
<br /><br />
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
<input type="text" value="" />
<input type="submit" name="submission" value="GO" />
</form>
Please help I’m stuck with this for 1 day..
use sessions