Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

multiple and dynamic edit form

New Here ,
Jun 08, 2010 Jun 08, 2010

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.

639
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 08, 2010 Jun 08, 2010

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

select id, name

etc

<cfoutput query = something>

<cfinput name = "name_#id#>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2010 Jun 08, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 08, 2010 Jun 08, 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.



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2010 Jun 09, 2010
LATEST

thanks. i'll check it out.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources