Whoopppssss....

You can also do this inline in the input statement as follows.

Should have read this way...

<input type="checkbox" name="power_brakes"
value="#get_inventory_for_update.power_brakes#"
<cfif (get_inventory_for_update.power_brakes) EQ 1>checked</CFIF>>

HTH
DavidB

-----Original Message-----
From: Phillip Cave [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 4:22 PM
To: CF-Talk
Subject: RE: What's wrong here?


don't know if it will make a difference, but shouldn't your <cfif> be
terminated after the <cfset check = "">?

-----Original Message-----
From: Douglas Brown [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 27, 2002 4:16 PM
To: CF-Talk
Subject: What's wrong here?


I must be brain dead, I cant figure out why this dont work. Right now
the value of this field in the DB is 1 and when I run this, the checkbox
does not even show up. If I take the <cfelse> portion out, then it works
ok.



    <cfif (get_inventory_for_update.power_brakes) EQ 1>
     <cfset check = "CHECKED">
     <cfelse>
     <cfset check = "">
     <cfoutput>
     <input type="checkbox" name="power_brakes"
value="#get_inventory_for_update.power_brakes#" #check#>
     </cfoutput>
    </cfif>




Douglas Brown
Email: [EMAIL PROTECTED]



______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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

Reply via email to