It may be an extra # around that tag and nothing to do with the tag (I can't see anything wrong excpet the use of # around GEC.Sex is not required).
HTH Bryan Stevenson VP & Director of E-Commerce Development Electric Edge Systems Group Inc. p. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com --------------------------------------------------------- Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com ----- Original Message ----- From: "Angel Stewart" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 11:06 AM 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists