I have contact info (name, address, phone) in a MySQL table. I read the rows with PHP and present the rows in an HTML table. What's the best way of allowing editing of any row?
What I'm doing so far is to display each cell in an HTML textfield. I put an edit button and a delete button at the start of every row. Each row is within <form> tags. That way, the contents of each textfield will be submitted and can be used to update the MySQL row.
Is that the quickest and most efficient way? I'm not interested in doing it in Ajax now, I just want to get it done :)
What I'm doing so far is to display each cell in an HTML textfield. I put an edit button and a delete button at the start of every row. Each row is within <form> tags. That way, the contents of each textfield will be submitted and can be used to update the MySQL row.
Is that the quickest and most efficient way? I'm not interested in doing it in Ajax now, I just want to get it done :)
Comment