foreach loop stops before end of array

I have a form that sends an array of data to a “review and submit” page.
It works fine with anywhere from 1 to 10 records, but if I send 11 or more, it only loops through the first 10.
Putting in a “print_r($_POST)” prints out all of the data with 11 - 25 rows, so I know it is getting to the page.

My code looks like this:
$i = 0;
$updates = ($_POST);
foreach($updates as $values) {
$seq = $updates[‘seq’][$i];
$UID = $updates[‘UID’][$i];
$f_name = $updates[‘f_name’][$i];
$l_name = $updates[‘l_name’][$i];
$role = $updates[‘role’][$i];
$r_id = $updates[‘r_id’][$i];
$status = $updates[‘status’][$i];
$purpose = $updates[‘purpose’][$i];
$i++;
echo “

$seq $UID $f_name $l_name $role $r_id $status $purpose ”;
}

Is there some inherent limit that I’m missing?
Or have I just done something stupid (wouldn’t be the first time.)
Thanks for your help.

Post your complete code including the form

Sponsor our Newsletter | Privacy Policy | Terms of Service