Hi guys,
I have a form defined below:
<form method="post" action=" <?php echo $_SERVER["PHP_SELF"];?> ">
<select name="month" >
<?php
$months = Array("January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December");
for( $x = 1; $x <= count($months); $x++ )
{
echo "<option value=\"$x\"";
if( $x == $month )
{
echo "selected";
$m = $month;
}
echo ">".$months[$x-1]."</option>";
}
?>
</select>
</form>
All I want to do is to be able to use a seperate hyperlinked image on my webpage to scroll through the months in my array. So in addition to being able to select any month in my dropdown list, I want an arrow to scroll through one month per click. ???
I figure that means begin able to set the value of month, possibly as a post variable(don't know if its even possible), outside of the form and refreshing the page.
I have never done anything like this before. Can anyone offer and insight into this?
Thanks
