Right, the form will be fine. Make sure you have a hidden field with the number of fields though, so the final script knows what its doing!
Then, read up on variable variables 😃
I did exactly the same kind of script, and on the last page this is what the loop goes like:
for($i = 1; $i < $number2; $i++){
$b=${'form_map'.$i};
}
Is what happens, in the first looop it makes a variable called $b have the data of a variable $form_map$i (Or $form_map1 in the loop) thus giving it the data from the form with variables of $form_map1. And $number2 would be the number of variables in the form, kinda thing.
That make sense? Like I say, they get quite confuddling.
So, you should be able to play about with it and make it do what you want.