I don't know if this is the best way, but I've successfully used:
<cfif ....>
<cfinput >
<cfelse>
<cfinpug >
</cfif>
Scott Brader
Prairie Software Development LLC
101 East Sadd Street
PO Box 235
North Prairie, WI 53153-0235
Phone: 262.392.9173
Fax: 262.392.9174
Toll Free: 888.821.3427
Mobile: 262.490.1376
<http://www.prairiesoftdev.com>
Amateurs practice until they get it right,
Experts practice until they can't get it wrong.
-----Original Message-----
From: Angel Stewart [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 13:07
To: CF-Talk
Subject: Inserting CFIF into CFINPUT
Hey all,
I want to make a CFINPUT Radio button checked or unchecked depending on
the value of a variable from the database.
Simple right?
Yup..I thought so too.
So why doesn't it work?
<cfinput type="Radio" name="sex" value="Male" <cfif #GEC.Sex# eq "Male">
CHECKED = "TRUE" </CFIF> >
I get this error:
------------------------------------------------------------------------
---------------------------------------
Just in time compilation error
Invalid token found on line 52 at position 67. ColdFusion was looking at
the following text:
<
Invalid expression element. The usual cause of this error is a
misspelling in the expression text.
The last successfully parsed CFML construct was a CFINPUT tag occupying
document position (52:21) to (52:28).
------------------------------------------------------------------------
---------------------------------------
Any ideas on what I'm doing wrong? I expect it to be some simple syntax
error.
-Gel
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists