Skip to main content
Known Participant
June 8, 2010
Question

multiple and dynamic edit form

  • June 8, 2010
  • 2 replies
  • 711 views

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.

    This topic has been closed for replies.

    2 replies

    Known Participant
    June 9, 2010

    thanks. i'll check it out.


    Inspiring
    June 8, 2010

    I make the record id part of the form field name.

    select id, name

    etc

    <cfoutput query = something>

    <cfinput name = "name_#id#>

    Known Participant
    June 8, 2010

    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?

    Inspiring
    June 8, 2010

    Just before I answered your question, I answered one on the Javascript updated element id not submitted by cfform thread. That answer had code for the action page

    That's still on page one of this forum so you should have no trouble finding it.