Never have seen it done quite this way before.
I think you are close but you need a few adjustments.
Start with the checkbox:
<input type=checkbox name=update_id[] value="id">
Is ok. When a checkbox array is posted only those checkboxes that are actually selected get posted.
So
$update_id = $_POST['update_id'];
foreach($update_id as $id) {
echo 'Record id to update ',$id;
}
So far so good. But for the Name column you have:
<input type="text" name="field[1]" value="xxx">
All you get back is one entry $field[1] which will hold the name of the last record in the list.
What you want to do is to generate
<input type="text" name=field1[id]" value="xxx">
Where id is the same number (or key) that's in your update_id array;
Now you have
$update_id = $POST['update_id'];
$field1 = $POST['field1']; // Name column
$field2 = $_POST['field2']; // StreetAddress column
foreach($update_id as $id) {
echo "Record $id $field1[$id] $field2[$id]";
// Update only one record at a time
// Sql does not let you do multiple records
// In one statement
}
Finally, unless you really have a reason for keeping things generic then you might want to just use the column names instead of field1,field2 etc.
I just noticed that this was cross posted. Dont do that. It's annoying to try and help someone only to realize that another thread has already covered the same issues. I can't speak for other memebers but I use the "view recent posts" command to view posts regardless of which forum they are in.