d3v4 — 2010-12-01T04:35:44-05:00 — #1
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?
guido2004 — 2010-12-01T04:40:50-05:00 — #2
Put the key that identifies the data in the query string of the link of each button.
d3v4 — 2010-12-01T04:49:19-05:00 — #3
guido2004 — 2010-12-01T05:08:11-05:00 — #4
Don't forget to sanitize the value before using it in the query.
d3v4 — 2010-12-01T05:29:36-05:00 — #5
Thanks for the reply, I had found an answer already