Check Boxes, Radio Buttons, Multiple Select boxes and Buttons send nothing
to the action page on form submission unless at least one selection is made
or the button is pressed ... So if you have a checkbox named "mycheckbox",
you would want to ensure a value for that form field on the action page
using a <cfparam> tag
hth
Isaac
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
> I'm having problems with checkboxes. I can't find what I'm
> doing wrong. I've
> read and reread my sources. I think I understand what to
> do -- but it still
> isn't working.
> PROBLEM: The checkboxes works when they are selected but
> don't when not. I
> understand that unselected checkboxes do not pass a value.
> I thought that
> CFPARAM would solve the problem. No!!!
> ERROR MSG below:
> .. Error resolving parameter <B>FORM.DISPLAYA</B><P><P>The
> specified form
> field cannot be found...
> CODE:
> My user-fills-out-form-page.cfm is
> <cfform name="eventsCalendar" method="post"
> action="submitEvent.cfm">
> <snip></snip>
> <input type="checkbox" name="displayA" value="Yes">
> <input type="checkbox" name="displayB" value="Yes">
> <input type="checkbox" name="displayC" value="Yes">
> <snip></snip>
> </cfform>
> My processing-page.cfm has
> <CFPARAM NAME = "displayA" DEFAULT = "No">
> <CFPARAM NAME = "displayB" DEFAULT = "No">
> <CFPARAM NAME = "displayC" DEFAULT = "No">
> <cfquery name="displayEvents" datasource="eventsCalendar">
> INSERT INTO displayEvents
> (displayA, displayB, displayC)
> VALUES
> ('#form.displayA#','#form.displayB#','#form.displayC#')
> </cfquery>
> I must be missing something very simple. thanks for any
> clues.
> gilbert midonnet
> __________________________________________________________
> ____________
> Structure your ColdFusion code with Fusebox. Get the
> official book at http://www.fusionauthority.com/bkinfo.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
______________________________________________________________________
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