House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Newbie (CF-Newbie)

Send Form--email shows each field as "left blank"

Author:
jerry horn
03/23/2012 09:41 AM

>Please show us your <cfform> or <form> tag you used.... > Thanks, Dave--here's the form: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">; <html> <head> <title>Reviews</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="Emma S. Clark Memorial Library; reviews"> <meta name="description" content="Allows patrons to submit book reviews."> <link href="/emmaclark.css" rel="stylesheet" type="text/css"> <CFINCLUDE template="/emma_icon.inc.cfm"> <style type="text/css"> <!-- .style3 {font-family: Arial, Helvetica, sans-serif} --> </style> </head> <body bgcolor="#F7F2F2" topmargin="5" link="#000000" alink="#990000" vlink="#000000"> <cfform> <cfif IsDefined('Form.Ratings')> <cfset Ratings=REReplaceNoCase(#Form.Ratings#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset Ratings="left blank"> </cfif> <cfif IsDefined('Form.author')> <cfset author=REReplaceNoCase(#Form.author#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset author="left blank"> </cfif> <cfif IsDefined('Form.title')> <cfset title=REReplaceNoCase(#Form.title#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset title="left blank"> </cfif> <cfif IsDefined('Form.reviewed_by')> <cfset reviewed_by=REReplaceNoCase(#Form.reviewed_by#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset reviewed_by="left blank"> </cfif> <cfif IsDefined('Form.grade')> <cfset grade=REReplaceNoCase(#Form.grade#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset grade="left blank"> </cfif> <cfif IsDefined('Form.date_reviewed')> <cfset date_reviewed=REReplaceNoCase(#Form.date_reviewed#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset date_reviewed="left blank"> </cfif> <cfif IsDefined('Form.subject')> <cfset subject=REReplaceNoCase(#Form.subject#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset subject="left blank"> </cfif> <cfif IsDefined('Form.callno')> <cfset callno=REReplaceNoCase(#Form.callno#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset callno="left blank"> </cfif> <cfif IsDefined('Form.description')> <cfset description=REReplaceNoCase(#Form.description#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset description="left blank"> </cfif> <cfif IsDefined('Form.pages')> <cfset pages=REReplaceNoCase(#Form.pages#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset pages="left blank"> </cfif> <cfif IsDefined('Form.opinion')> <cfset opinion=REReplaceNoCase(#Form.opinion#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset opinion="left blank"> </cfif> <cfif IsDefined('Form.whychoose')> <cfset whychoose=REReplaceNoCase(#Form.whychoose#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset whychoose="left blank"> </cfif> <cfif IsDefined('Form.whatlearn')> <cfset whatlearn=REReplaceNoCase(#Form.whatlearn#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset whatlearn="left blank"> </cfif> <cfif IsDefined('Form.Book_Evaluation')> <cfset Book_Evaluation=REReplaceNoCase(#Form.Book_Evaluation#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset Book_Evaluation="left blank"> </cfif> <cfif IsDefined('Form.recommend_to')> <cfset recommend_to=REReplaceNoCase(#Form.recommend_to#, "<[^>]*>", "" , "ALL" )> <cfelse> <cfset recommend_to="left blank"> </cfif> <cfprocessingdirective suppresswhitespace="no"> <cfmail subject="Teen Non-Fiction Book Review" from="teens@emmaclark.org" to="teens@emmaclark.org" bcc="ted@emmaclark.org"> Rating = #Ratings# Author = #author# Title = #title# Reviewed By = #reviewed_by# Grade = #grade# Date Reviewed = #date_reviewed# Subject = #subject# Call Number = #callno# Briefly describe the book = #description# Number of pages = #pages# Your opinion of the book = #opinion# Why did you choose this book? = #whychoose# What did you learn from this book? = #whatlearn# Overall Evaluation = #Book_Evaluation# </CFMAIL> </cfprocessingdirective> <CFOUTPUT> <p align="center" class="style3">Thank you.  Your review has been submitted.</p> </CFOUTPUT> </cfform> <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <!-- END MAIN CONTENT AREA --> <p align="center" class="style3"><a href="/teens">Back to Teens page </a></p></td> </tr> </table> <!-- Begin FOOTER --> <!-- End FOOTER --> </body> </html>


Search cf-newbie

May 25, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference