No I've got that part working. I can get the values from the POST array with the for loop code that I just posted. What I needed was to be able to incorporate a second array into that loop. A was hoping to be able to associate numerical indices with the
$row = mysql_fetch_array($result);
That way I could put it all together like this:
$form_fields = array_keys($_POST);
$row = mysql_fetch_array($result);
for ($i = 0; $i < sizeof($form_fields); $i++)
{
$curField = $form_fields[$i];
$curValue = $_POST[$curField];
echo $curValue;
echo $row[$i];
}
Unfortunately with this code, only the first value in the $row() array is printed, even though every item in the form_field() array gets printed.