Question
How to edit multiple records
I query a table using ref_no and return five records. I
display all five records in form format, in a table, using
<cfoutput query="qry">.
This is an edit page, so what I need to do for each line item is allow the user to edit. I am thinking of adding two radio buttons next to each record. So if they want to delete this line item, they would check the delete button and if they want to change it, they would check the edit button.
If I have this for each line item, my question is how do I handle the multiple line items when I submit, would it be a cfloop ?
Also, if they want to add a new line item, I guess there can be a third button called add, but how would that be handle also ?
Anybody have a nice technique/code to do this ?
This is an edit page, so what I need to do for each line item is allow the user to edit. I am thinking of adding two radio buttons next to each record. So if they want to delete this line item, they would check the delete button and if they want to change it, they would check the edit button.
If I have this for each line item, my question is how do I handle the multiple line items when I submit, would it be a cfloop ?
Also, if they want to add a new line item, I guess there can be a third button called add, but how would that be handle also ?
Anybody have a nice technique/code to do this ?
