DIGIT-ARC read-only archive · snapshot: July 23, 2026

Editing table content using forms in PHP

2 posts · originally from https://geek.digit.in/community/threads/editing-table-content-using-forms-in-php.113764/

Sridhar_Rao
Sridhar_Rao Original post #1
Apr 26, 2009 at 9:24 PM
I have a table with 30-40 records. I wish to present all the records in a html form (data in each column being displayed in a series of textbox elements of a single form). I have been able to do that successfully, but I have two requirements.

Lying next to data of each record is placed a delete button. When the user clicks on the button, corresponding record should be deleted. I can't get to do that.

The same form contains an update button, clicking on which each of the data element gets updated into the record. May be I should use foreach loop and update every record one by one. How can this be optimally done?
aasisvinayak
Apr 29, 2009 at 2:58 AM
It is an easy task.... Do you want me to do this for you? It is quite simple :)