Kay,

According to the http protocol, unchecked control
items such as checkboxes and radios are not sent at
all. Therefore, your action page will get no clue that
they exist. It's just one of those things with forms.

You'll have to remember what control items you have in
your program. One common way of dealing with it is to
do <cfparam>'s for all your checkboxes in your action
page.

--- Kay Smoljak <[EMAIL PROTECTED]> wrote:
> 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.
> 

=====
I-Lin Kuo
Macromedia CF5 Advanced Developer
Sun Certified Java 2 Programmer


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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