Chris,

You can't nest tags in conditional statements because of the possibility
that they might not execute.  You'd have to bring the <CFFORM> tag inside
your conditions:

<CFIF BLAH>
        <CFFORM>
        </CFFORM>
<CFELSE>
        <CFFORM>
        </CFFORM>
</CFIF>

or bring the <CFFORM> tag outside the conditionals:

<CFFORM>
        <CFIF BLAH>
                do something
        <CFELSE>
                do something else
        </CFIF>
</CFFORM>


--
Reuben Poon
Programmer
[EMAIL PROTECTED]
PINT - Powell Internet

Tel: 858.270.2086
Fax: 858.270.0410

http://www.pint.com
http://www.democompany.com



-----Original Message-----
From: Chris Hayes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 09, 2000 9:10 AM
To: [EMAIL PROTECTED]
Subject: Now what?


I have a conditional form post:

<cfif blah>
    <cfform .... >
<cfelse>
    <cfform ...>
</cfif>
.
.
</cfform>

But ColdFusion gives a JIT error that there is an extraneous </cfform> tag.

What other ways are there of doing this?



----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to