I have a simple HTML form with several fields (like id, name, contact, and email). Once a user fills out the form and submits it, data will be stored in a database and at the same time (even on the same page), a table will display the data that has been stored.
Now, I want to put an update button at the bottom of the table. When the user clicks on it, they can view the form which will be pre-filled with the data they previously entered, so they don't need to type the data twice.
How can I do that? How can I catch the other fields based on the id field?