Try this...

<cfloop collection="#form#" item="theField">
<cfif theField is not "fieldNames">
<cfoutput>
#theField# = #form[theField]#<br>
</cfoutput>
</cfif>
</cfloop> 

-----Original Message-----
From: Scott Stewart [mailto:[email protected]] 
Sent: Friday, December 19, 2008 2:57 PM
To: cf-talk
Subject: finding dynamic form fields after submission

Hey all,

I have a form with one of those wonderful dynamic "ad form row" widgets. 
Because of this I never will know exactly what fields will be sent for
processing...

the original four fields in the row are called "play", "po", "role", and
"year", the javascript generates "play1", "po1", "role1" and "year1" or 2,
or 3 ad Infinitum based on how many rows the user has selected.
on the processing side I need to write the form field values to a structure
because there will be credit card processing before I write to the database.

How can I loop over the form structure and find the dynamically generated
form fields and their values.

--
Scott Stewart
ColdFusion Developer

Office of Research Information Systems
Research &amp; Economic Development
University of North Carolina at Chapel Hill

Phone:(919)843-2408
Fax: (919)962-3600
Email: [email protected]





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316995
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to