Have you closed the IF? The error message is simply stating you haven't got
one..

<cfif>
 <cfmail></cfmail>
 <cfmail></cfmail>
<cfelse>
  Show reg form
</cfif>

And you can drop the #'s within the IF  - they are not required.






-----Original Message-----
From: Torrent Girl [mailto:[EMAIL PROTECTED] 
Sent: 08 June 2005 13:22
To: CF-Newbie
Subject: Need help asap

I am using two CFMAIL tags in a IF statement and get the following error:

I have done this before. What gives???


I have the code written like this:

<cfif formMethod EQ "send">

<cfmail>.....</cfmail> This tag sends the registration to an email address
<cfmail>.....</cfmail>  this tag sends an email to the registrant

<cfelse>

Show registration form



Context validation error for tag cfif.  
The start tag must have a matching end tag. An explicit end tag can be
provided by adding </cfif>. If the body of the tag is empty you can use the
shortcut <cfif .../>.
The CFML compiler was processing:

The body of a CFMAIL tag beginning on line 55, column 18.
 
  
The error occurred in D:\INETPUB\wifenetwork\conferencecalls.cfm: line 40
 
38 : 
39 : <cfinclude template="includes/conferenceTop.cfm"> 
40 : <cfif #formMethod# EQ "send"> 
41 : <CFMAIL TO="[EMAIL PROTECTED]"
42 :            FROM="#Email#"
 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only 
good for you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1089
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to