<cfif #IsDefined("form.checkbox")# Is "Yes">
Do this
<cfelse>
Do that
</cfif>

OR

<cfparam name="form.checkbox" default="">

<cfif #form.checkbox# neq "">
Do this
<cfelse>
Do that
</cfif>

Paul Giesehagen
QuillDesign
http://www.quilldesign.com
SiteDirector v2.0 - Commerce Builder


----- Original Message -----
From: "Ron Davis" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 1:59 PM
Subject: Re: Documentation


> terribly basic question here... and i feel like a goober even asking...
but.. how do I evaulate a checkbox?
>
> I want to say "If this box is checked, then do this"... I've tried saying:
>
> <cfif #form.checkbox# EQ "true">
> <cfif #form.checkbox# EQ "yes">
>
> but, neither one works.....
>
> Thanks!!
>
> -Ron
>
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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

Reply via email to