I have a <table> that contains all the information from a database, and I want the user to update this information through a form. Every row of the table has an "Edit" button, which is a link that takes the user to a page where there's a form letting them update the information of the selected row.
My problem is, how can I connect the Edit button with the correct row? in other words, how can I store the information about which row has been selected, in order to update the selected row?
Put the key that identifies the data in the query string of the link of each button.
Don't forget to sanitize the value before using it in the query.
Thanks for the reply, I had found an answer already