Copy link to clipboard
Copied
Hi,
I want to create something similar to phpAdmin, where you check more than 1 records to be edited. Then you are able to edit 1 record and submit changes or edit many records and submit changes. I basically have a query that pull more than 1 records and display in a form to be edit, but the problem is how do I passing unique/dynamic form variables to the action page to be updated in the db. Any suggestions?
Thanks.
Copy link to clipboard
Copied
I make the record id part of the form field name.
select id, name
etc
<cfoutput query = something>
<cfinput name = "name_#id#>
Copy link to clipboard
Copied
thanks. I was thinking of something like that for a unique form name to pass over action page. I am wondering over at the action page, how would I sort out the form variables to update the record into the database?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
thanks. i'll check it out.