you have to use the value of the checkbox to see if it has been
checked. If the value attribute of your checkbox is 1

<cfif form.checkbox EQ 1>

if the value attribute of your checkbox is true

<cfif form.checkbox EQ 'true'>

will work for you.

HTH,

Kristine C. Hege
 463-2111 ext. 232
 
 One person's error is another person's data. 

On Fri, 15 Mar 2002, Ron Davis wrote:

> 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