View Single Post
Old 07-31-2006, 08:44 PM   #4 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 151
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Well, if you want to keep using $_POST vars, you'll need to set the $scroll variable as a hidden post var

PHP Code:
<?php
// set scroll equal to scroll + increment
$scroll $_POST['scroll'] + $_POST['increment'];
?>
(code displaying the calendar table...)

<form action="reservations.php" method=post>
Scroll Forward by
<select name="increment">
<option value="1">1 Week</option>
<option value="2">2 Weeks</option>
<option value="3">3 Weeks</option>
<option value="4">4 Weeks</option>
</select>
<input type="hidden" name="scroll" value="<?=$scroll>">
<input type="submit" name="scroll_forward" value="Go">
</form>
__________________
Current Project
Redline is offline   Reply With Quote