Give the form fields the same name as the database field. Then, when you're going through the $_POST array it's obvious which form field goes with which database field. Throw in a couple of other type="hidden" form fields to contain stuff that doesn't need or shouldn't be edited (database record ID, for example).
If you're displaying multiple records at once, name the fields as something like "title[<?php echo $id?>]", "body[<?php echo $id?>]" where $id of course is the ID# of that record. $POST['title'] is then an array of all the titles listed, with $POST['title'][54] being the title of record#54.
An alternative to the previous paragraph is to give each record its own form. You can only update one record at a time this way, but it means a lot less data to upload and a lot less processing at the other end. And you can go back to using a hidden form field to store the record ID.