Hi all,
I have a dynamically generated form, with numbered fields. I have the
following code on my action page to set all checkboxes to 0 by default
(the hardcoded 50 is for testing purposes):
<cfloop from="1" to="50" index="p">
<cfset str="form.include" & "#numberformat(p,"00_")#">
<cfparam name="str" default="0">
<cfoutput>#str#</cfoutput>
</cfloop>
The cfoutput bit at the end is displaying the correct formfield names:
form.include001, form.include002 etc etc. These are the same as the
formfields on the form page.
Later down in the action page, however, trying to display the values of
the formfields is throwing an "Error resolving parameter
FORM.INCLUDE001" if the checkbox on the form is not checked. It's got me
completely stumped. If it is checked it all works fine. So it looks like
there is something wrong with the cfparam statement. Any ideas?
Thanks,
Kay.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists