Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
My code is sending a survey form to the users and getting their response through email.
I am using a form inside cfmail tag . I need the values selected or entered in the form to be posted to another cfm page. The email works fine. But I'm not able to get the form field values entered in the form into the action page.Here is my code
<cfmail to="xxx" from="yyy" subject="Request Follow-up" type="html" >
<form action="http:\\xxxx\copy_email.cfm" method="POST" name="send" >
Please provide us assistance by answering the 3 questions below: <p>
Has your problem been solved?
<SELECT name="xx">
<option value="No" selected>No
<option value="Yes">Yes
</select>
<input type="submit" name="submit" value="Submit survey">
</form>
</cfmail>
The action page "copy_email.cfm" is:
<cfoutput>Survey Report: #form.xx# </cfoutput>
I am not able to see the value of the #form.xx# in the action page. It gives the following error message
"An error occurred while evaluating the expression:
#form.xx#
Error near line 12, column 42.
Error resolving parameter FORM.XX
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 processing an element with a general identifier of (#form.xx#), occupying document position (12:41) to (12:49) in the template file"
Please let me know how to solve this. Thanks in advance.
My code is sending a survey form to the users and getting their response through email.
I am using a form inside cfmail tag . I need the values selected or entered in the form to be posted to another cfm page. The email works fine. But I'm not able to get the form field values entered in the form into the action page.Here is my code
<cfmail to="xxx" from="yyy" subject="Request Follow-up" type="html" >
<form action="http:\\xxxx\copy_email.cfm" method="POST" name="send" >
Please provide us assistance by answering the 3 questions below: <p>
Has your problem been solved?
<SELECT name="xx">
<option value="No" selected>No
<option value="Yes">Yes
</select>
<input type="submit" name="submit" value="Submit survey">
</form>
</cfmail>
The action page "copy_email.cfm" is:
<cfoutput>Survey Report: #form.xx# </cfoutput>
I am not able to see the value of the #form.xx# in the action page. It gives the following error message
"An error occurred while evaluating the expression:
#form.xx#
Error near line 12, column 42.
Error resolving parameter FORM.XX
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 processing an element with a general identifier of (#form.xx#), occupying document position (12:41) to (12:49) in the template file"
Please let me know how to solve this. Thanks in advance.