Thanks Dave for you time.
If I remove the <cfparaam name="url.all default=""> the form will not remember
the checkbox if the captcha is worng.
If I remove this <cfparam name="FORM.all" default=""> I will rec. an error
message:
Element ALL is undefined in FORM.
<cfinput type="checkbox"
name="all"
checked="#isDefined('form.all')#"> All 50 States
>Barry,
>
>Okay, what you need to understand is that when you use CFFORM with
>method="post", all your form variables will be in the 'form' scope. When
>you use CFFORM with method="get", all your form variables will be in the
>'url' scope.
>
>For what you are trying to do, I think you don't need this line:
>
><cfparam name="url.all" default="">
>
>What you do need to do is in your 'form handling' section of code, you have
>to look for existence of 'form.all' with isDefined("form.all") because if
>the checkbox is NOT checked, the 'form.all' will NOT exist.
>
>If you need help, post your code that is erroring out with a few lines
>before and after.
>
>Dave
>Hi Dave.
>
>The form works now. It will remember the visitors entry.
>
>But if left unchecked, I'm getting an error message when email is sent ot
>the captcha is correct.
>
><cfparam name="url.all" default="">
>
><cfinput type="checkbox" name="all" checked="#isDefined('form.all')#"> All
>50 States
>
>Regards,
>
>Barry
>
>
>was
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4631
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15