I great way to test for values is to do a little debugging. For example, if submit.php simply had this:
<?php
print '<pre>';
print_r($_POST);
?>
It will show you all POSTed values. From here you will see the layout of the $_POST array. In your case, it'll be:
print $_POST['first'][0];
print $_POST['first'][1];
print $_POST['first'][2];
print $_POST['last'][0];
print $_POST['last'][1];
...
Of course the number depends on the value of $name in your for loop. In a similar fashion:
<input type="text" name="info[firstname]">
print $_POST['info']['firstname'];
And lastly, the following manual page will be valuable:
http://uk.php.net/manual/en/language.variables.external.php