You need to first see if the name of the checkbox exists, as the browser
will not even return the form variable if the checkbox is not checked (ie.
IsDefined('form.checkbox')). Then, you can check the value of that variable
(which will return the value="" attribute of the <input> tag for the
checkbox) against whatever you want. HTH!
--
SCOTT VAN VLIET
SENIOR ANALYST
SBC SERVICES, INC
Tel: 858.886.3878
Fax: 858.653.6763
Email: [EMAIL PROTECTED]
-----Original Message-----
From: Ron Davis [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 12:00 PM
To: CF-Talk
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
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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