on the form:
<input type="checkbox" name="cbox1" value="1" />
(etc)

on the action page:
cfparam your checkboxes with a default value of 0.

if a box is checked, it will override the 0.  if it is not checked, it
won't be passed and CF will default to the cfparam value.


On Thu, 20 Jan 2005 15:35:53 -0600, Donna French <[EMAIL PROTECTED]> wrote:
> what's the best method for dealing with checkboxes?
> 
> i want to insert a 1 if checked, a 0 if not.
> 
> should i set the value in my form, or check the "checked" status in my
> insert query and set the value there? i know this should be simple but
> i've stared at it so long now i've confused myself.
> 
> tia,
> donna
> 
> --
> ------------------------
> Donna French
> [EMAIL PROTECTED]
> 
> Blog: http://dgfrench.blogspot.com
> Site: http://www.dgfrenchdesigns.com
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191279
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to