I can, of course, not see how your php processing is done, but 'll give it a try.
When the number of rounds is entered, you can save that number in the form as a hidden field, say that number is in php variable $rounds, you append the next statement to the form:
[php]<input type='hidden' name='rnd' value='<? echo $rounds ?>' />[/php]
I can see that you assign the names of the fields using a counter, i.e. first tee date is in 'firstinput1', the second tee date is in 'firstinput2', etc. For the times the first tee time is in 'TeeTime1', the second in 'TeeTime2', etc.
When the form is submitted, first you do is to get the number of round from the $_POST string. Then you use this counter '$rnd' in a loop to process the tee dates and tee times and store them in an array, like this:
[php]
if (isset($_POST['rnd'])) {
$rnd = $_POST['rnd'];
$date_time=array();
for ($i=1; $i <= $rnd; $i++) {
$date_time[$i]['date'] = $_POST['firstinput'.$i];
$date_time[$i]['time'] = $_POST['TeeTime'.$i];
}
echo '<pre>'; print_r($date_time);
}
[/php]
The last statement prints out the array you built, so you can see what is in it. Good luck. When you have any more problems with this snippet or your script, let us know.
Ronald :cool: