Hi,
I try to make a form with checkbox. This is my form.html (in quote):
"
<FORM ACTION="forms4.cfm" METHOD="POST">
<P>
Would you like to be added to our mailing list?
<INPUT TYPE="checkbox" NAME="MailingList">
<P>
<INPUT TYPE="submit" VALUE="Process">
</FORM>
"
And this is my Forms4.cfm (part in quote):
"
<CFOUTPUT>
Hello,<BR>
<CFIF #FORM.MailingList# CONTAINS "on">
You will be added to our mailing list.
<CFELSE>
You will not be added to our mailing list.
</CFIF>
</CFOUTPUT>"
I receive error message as below when I uncheck the checkbox:
"
Error Diagnostic Information
Error resolving parameter FORM.MAILINGLIST
The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
The error occurred while evaluating the expression:
#FORM.MailingList# CONTAINS "on"
The error occurred while processing an element with a general identifier of (CFIF), occupying document position (9:1) to (9:39). "
Thank you in advance
GH
[sig][/sig]
I try to make a form with checkbox. This is my form.html (in quote):
"
<FORM ACTION="forms4.cfm" METHOD="POST">
<P>
Would you like to be added to our mailing list?
<INPUT TYPE="checkbox" NAME="MailingList">
<P>
<INPUT TYPE="submit" VALUE="Process">
</FORM>
"
And this is my Forms4.cfm (part in quote):
"
<CFOUTPUT>
Hello,<BR>
<CFIF #FORM.MailingList# CONTAINS "on">
You will be added to our mailing list.
<CFELSE>
You will not be added to our mailing list.
</CFIF>
</CFOUTPUT>"
I receive error message as below when I uncheck the checkbox:
"
Error Diagnostic Information
Error resolving parameter FORM.MAILINGLIST
The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
The error occurred while evaluating the expression:
#FORM.MailingList# CONTAINS "on"
The error occurred while processing an element with a general identifier of (CFIF), occupying document position (9:1) to (9:39). "
Thank you in advance
GH
[sig][/sig]