Question
cfform error
Keep getting this error but cant find where the problem is...
It is a context inspection error of tag cfform.
End tag </cfform in 11 lines of 67 lines> Being similar needs
supporting start tag
// response.cfm
<!--- Add cfparams to prevent errors on the page --->
<cfparam name="FORM.name" default="">
<cfparam name="FORM.kana" default="">
<cfparam name="FORM.postcode" default="">
<cfparam name="FORM.address" default="">
<cfparam name="FORM.Tel" default="">
<cfparam name="FORM.email" default="">
<!--- Create an empty error string --->
<cfset strError = "">
<!--- If the form is submitted --->
<cfif isDefined("FORM.Submit")>
<!--- If the First Name field is empty --->
<cfif Len(Trim(FORM.Name)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your
Name!<br>">
</cfif>
<!--- If the Email field is empty --->
<cfif Len(Trim(FORM.Email)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your
Email!<br>">
</cfif>
<!--- If the Country field is empty --->
<cfif Len(Trim(FORM.kana)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your name
in Kana!<br>">
</cfif>
<!--- If the Telephone field is empty --->
<cfif Len(Trim(FORM.Tel)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your
Telephone!<br>">
</cfif>
<!--- If the form was not submitted --->
<cfelse>
<!--- Send the user to the form page --->
<cflocation addtoken="no" url="/CFML/response.cfm">
</cfif>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
" http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Response Page</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<!--- If the error string is still empty show the results --->
<cfif strError EQ "">
<p>Thank you for submitting your
request.</p>
<p>You submitted the following
information:</p>
<cfoutput>
<p>Name: #Trim(FORM.Name)#<br>
Kana: #Trim(FORM.Kana)#<br>
Postcode: #Trim(FORM.postcode)#<br>
Address: #Trim(FORM.address)#<br>
Telephone: #Trim(FORM.Tel)#<br>
Email: #Trim(FORM.email)#</p>
</cfoutput>
<p>Someone will contact you shortly.
</p>
<!--- Send the email --->
<cfmail
from="info@nathess.com"
to="info@nathess.com"
cc="#FORM.Email#"
subject="Info Request"
server="nathess.com">
Thank you for submitting our request.
You submitted the following information:
Name: #Trim(FORM.Name)#
Kana: #Trim(FORM.Kana)#
Postcode: #Trim(FORM.postcode)#
Address: #Trim(FORM.address)#
Telephone: #Trim(FORM.Tel)#
Email: #Trim(FORM.Email)#
Someone will contact you within 24hrs.
</cfmail>
</cfif>
</body>
</html>
It is a context inspection error of tag cfform.
End tag </cfform in 11 lines of 67 lines> Being similar needs
supporting start tag
// response.cfm
<!--- Add cfparams to prevent errors on the page --->
<cfparam name="FORM.name" default="">
<cfparam name="FORM.kana" default="">
<cfparam name="FORM.postcode" default="">
<cfparam name="FORM.address" default="">
<cfparam name="FORM.Tel" default="">
<cfparam name="FORM.email" default="">
<!--- Create an empty error string --->
<cfset strError = "">
<!--- If the form is submitted --->
<cfif isDefined("FORM.Submit")>
<!--- If the First Name field is empty --->
<cfif Len(Trim(FORM.Name)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your
Name!<br>">
</cfif>
<!--- If the Email field is empty --->
<cfif Len(Trim(FORM.Email)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your
Email!<br>">
</cfif>
<!--- If the Country field is empty --->
<cfif Len(Trim(FORM.kana)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your name
in Kana!<br>">
</cfif>
<!--- If the Telephone field is empty --->
<cfif Len(Trim(FORM.Tel)) LT 1>
<!--- Add this to the error string --->
<cfset strError = strError & "Please enter your
Telephone!<br>">
</cfif>
<!--- If the form was not submitted --->
<cfelse>
<!--- Send the user to the form page --->
<cflocation addtoken="no" url="/CFML/response.cfm">
</cfif>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
" http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Response Page</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<!--- If the error string is still empty show the results --->
<cfif strError EQ "">
<p>Thank you for submitting your
request.</p>
<p>You submitted the following
information:</p>
<cfoutput>
<p>Name: #Trim(FORM.Name)#<br>
Kana: #Trim(FORM.Kana)#<br>
Postcode: #Trim(FORM.postcode)#<br>
Address: #Trim(FORM.address)#<br>
Telephone: #Trim(FORM.Tel)#<br>
Email: #Trim(FORM.email)#</p>
</cfoutput>
<p>Someone will contact you shortly.
</p>
<!--- Send the email --->
<cfmail
from="info@nathess.com"
to="info@nathess.com"
cc="#FORM.Email#"
subject="Info Request"
server="nathess.com">
Thank you for submitting our request.
You submitted the following information:
Name: #Trim(FORM.Name)#
Kana: #Trim(FORM.Kana)#
Postcode: #Trim(FORM.postcode)#
Address: #Trim(FORM.address)#
Telephone: #Trim(FORM.Tel)#
Email: #Trim(FORM.Email)#
Someone will contact you within 24hrs.
</cfmail>
</cfif>
</body>
</html>