If a checkbox is unchecked, it will pass no variable.

So, if the name of the checkbox code is:
<input type="checkbox" name="mybox" value="YES" />

Then on the post page, 
<cfparam name="form.mybox" default="NO">
<cfif form.mybox EQ "YES">
  code...
</cfif>

>>> "Ron Davis" <[EMAIL PROTECTED]> 03/15/02 02:59PM >>>
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


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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