in reply to Logical question-to upate DB records

Well, you'd need to either tie the inputs to the buttons, somehow... so that your html comes out something like:
<input type=text name=Detail1 ...> <input type=submit name=Submit1 value=Update> ... <input type=text name=Detail2 ...> <input type=submit name=Submit2 value=Update>
etc. And then check (in the code that receives the submit) which of the submit buttons was pressed... And then proceed accordingly (looking for Detail$x in the form data if Submit$x is also in the form data).

--OR--

Just wrap each pair of input/submit-button in its own <form> tag. This, however, may not be feasible, depending on the constraints of what else you are trying to do with this page.

------------ :Wq Not an editor command: Wq