Below is the code for looping the months I am attempting to use. I have not working on the form yet, I don't know where to start. You might have a better way to do this. All I want is to make a twelve month rolling form. I would like to do this and have one submit button to update or insert records depending on if they are already in the database (mysql). So I want a form for all twelve months which will be twelve different records. Can this be done. Thank you in advance. I am stumped.
<?
$enddate = mktime(0, 0, 0, date("m")+4, date("d"), date("Y"));
$currentdate = date("Y-m");
$enddate = date("Y-m", $enddate); // the enddate
for ($currentdate = $currentdate; $currentdate <= $enddate; $currentdate++)
{
?>
<td>
<table>
<tr>
<td class="bodycopy"><? echo $currentdate; ?>
</td></tr>
</table>
</td>
<?
}
?>