you can loop over the form.fieldnames value to get the list of fields. or as your form is dynamically generating the fields, update a hidden value with the # of current fields. on the action page, loop from 1 to the value of that hidden field and generate the names dynamically (e.g. form['po' & loopIndex])
On Fri, Dec 19, 2008 at 11:57 AM, Scott Stewart <saste...@email.unc.edu>wrote: > 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 & Economic Development > University of North Carolina at Chapel Hill > > Phone:(919)843-2408 > Fax: (919)962-3600 > Email: saste...@email.unc.edu > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:316994 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4