I think you'll need to check that it's defined (IsDefined("checkbox"))
first... otherwise the if test will fail if it hasn't been checked.
I may be wrong though!! :^)
> From: "Kevin Mansel" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 13 Feb 2001 22:48:32 -0800
> To: CF-Talk <[EMAIL PROTECTED]>
> Subject: Re: Check value of form check box for CFMAIL
>
> Jeff,
>
> If you want to test if it has been checked you can do it this way...
>
> <input type=checkbox value="bannerad" name="checkbox">
>
> <cfif #FORM.checkbox# IS "bannerad">
> I want banner ads
> </cfif>
>
> Kevin Mansel
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists