HOLLY COW ! Perfect...
When I rec. the email, the checkbox would say, "yes" or "no". I changed it to: <cfif #FORM.all# EQ "no"> Not All 50 states <cfelse> All 50 States </cfif> Coldfusion or I call it confusion sometimes. Thanks, Barry >Make it: > ><cfinput type="checkbox" name="all" checked="#form.all#" value="yes"> > >The default value for a checkbox, if checked, is 'on'. We need it to be >'yes' instead, so we set it explicitly. Now when the form reloads, checked >will be 'yes' if it was already checked and 'no' (from the <cfparam> tag at >the top) if it wasn't checked. > >Almost there! > >Dave > >I'm rec. this error if the checkbox (name="all") is checked and I type the >wrong captcha letters or numbers. > >cannot convert the value "on" to a boolean ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4638 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
