You would need the ID to ascertain in the next page that you are inserting the values for the right records. Otherwise you have no control over your dataflow.
The foreach loop is a way to loop to an array and FOR EACH value in the array do something:
$names = array('Joe','Alan','Pete','Chris');
foreach($names as $key => $name)
{
echo "I like: ".$key.". ".$name."<br />";
}