I should have added that you can also give the checkbox a value of something
other than 0 and then create a cfparam with a default of 0. Anytime the
variable 'form.checkboxname' is something other than 0, it was checked. I
usually need to do that only when the checkboxes are dynamic with dynamic
names.
<cfparam name="form.checkboxname" default="0" />
<cfif form.checkboxname neq '0'>
It was checked
</cfif>
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 10:49 AM
To: CF-Talk
Subject: RE: Checking for value of checbox in an <cfif
<cfif isdefined('form.checkboxname')> It was checked <cfelse> It was not
checked </cfif>
...:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Doug Brown [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 10:12 AM
To: CF-Talk
Subject: Checking for value of checbox in an <cfif
How would you check if a checkbox was indeed checked within a <cfif> block?
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263025
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4