You need to check for the existence of the checkbox first.  Checkboxes only are 
part of the Form or Request scope if they are checked, otherwise that are not.

This is one way to write it with the cfparam tags.

<CFPARAM Name="Dh" Default=0>
<CFPARAM Name="Wh" Default=0>
<CFPARAM Name="BWh" Default=0>

<CFIF IsDefined("Form.Dh")>
    <CFSET Dh = 1>
</CFIF>
<CFIF IsDefined("Form.Wh")>
    <CFSET Wh = 1>
</CFIF>
<CFIF IsDefined("Form.BWh")>
    <CFSET BWh = 1>
</CFIF>

This is another way without the cfparam tags.

<CFIF IsDefined("Form.Dh")>
    <CFSET Dh = 1>
<CFELSE>
    <CFSET Dh = 0>
</CFIF>
<CFIF IsDefined("Form.Wh")>
    <CFSET Wh = 1>
<CFELSE>
    <CFSET Wh = 0>
</CFIF>
<CFIF IsDefined("Form.BWh")>
    <CFSET BWh = 1>
<CFELSE>
    <CFSET BWh = 0>
</CFIF>

Hope this helps.

Chuck Weidler
Lockheed Martin Information Technology
7152 Windsor Blvd
Baltimore, MD  21244
Voice:  (443) 348-4252
Email:  [EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3473
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to