Well this ain't a tutorial, but it should help a bit. Build your forms to input arrays, it's much easier to parse. I.e.
$recs = 10;
$fields = array("name","address","phone");
for ($l=0;$l<$recs;$l++){
print "Record Number: ".$l;
for ($k=0;$k<count($fields);$k++){
print $fields[$k].":";
print '<input type="text" name="';
print $fields[$k];
print '['.$l.']';
print '><BR>';
}
}
Then when your data comes back it will be:
$name[0], $address[0], $phone[0] will be the first record, the second will be $name[1] and so on.
You can also change it so you get back:
$var[0]['name']
$var[0]['address']
$var[0]['phone']
$var[1]['name']