Yes that's easy. You fetch the values from the fields in the table in your database and store them in variables that are assigned to the input fields of your form. Then you can edit the contents of the form and submit it back to the same page by setting the forms action to "#". When the page reloads you collect the information submitted by the form and store it back into the table in your database.