Note you can also build a form like so:
<FORM>
<INPUT TYPE="TEXT" NAME="lname[]">
<INPUT TYPE="TEXT" NAME="fname[]">
..
..
<INPUT TYPE="TEXT" NAME="lname[]">
<INPUT TYPE="TEXT" NAME="fname[]">
..
..
</FORM>
and that will result in the vars being brought in with $_POST['lname'] being an array you can extract:
$lname = $_POST['lname']
so that you now have $lname[0] being the first one, $lname[1] being the second and so on.