In the script the form is submitted to pass the primary key (or any unique key) of the row you want to edit. Then create a form with a hidden field that contains that value as well as the editing slots. When you submit the edited data to your update script, update the row with the value of the hidden field.