On Thu, 20 Sep 2001 10:06:32 +0800, "Kay Smoljak" <[EMAIL PROTECTED]>
wrote:

>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>

Oops - found the problem. It should be <cfparam name="#str#"
default="0">... Don't you hate looking at something for hours and hours
and not seeing the obvious?

K.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to