Re: Checkbox prob...

2000-07-27 Thread Shane Pitts

If a checkbox is "unchecked" no field name is sent as a variable.  Check for
it's existence either like the below example, or by using CFPARAM on the
action page with a default of "no"  then check for its existence and skip
the  block



 
  

  


 
 insert into table1
 (Field1)
values
 ('#Field1#')
 

Shane






- Original Message -
From: "mohammed jakda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 27, 2000 3:13 PM
Subject: Checkbox prob...


> Hi,
> I have a single checkbox field on a form for a user to check or uncheck if
> they want to subscribe to a newsletter, the problem I'am having is that if
> the user unchecks it, then my insert query does not record anything such
as
> no or 0 in my Dbase column, whereas as if it is left at the default
checked
> it store the value "yes" in the Dbase...
> Does anyone know how to make a value be stored in the Dbase when a user
> unselects the checkbox???
>
> 
>
> 
> 
> 
> insert into table1
> (Field1)
> values
> ('#form.Field1#')
> 
> 
> 
>
> Regards.
>
> Parsman.
>
>
>
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> --

> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Checkbox prob...

2000-07-27 Thread Deanna L. Schneider

On your action do this:







Deanna Schneider
Interactive Media Developer
UWEX Cooperative Extension Electronic Publishing Group
103 Extension Bldg
432 N. Lake Street
Madison, WI 53706
(608) 265-7923



--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Checkbox prob...

2000-07-27 Thread Jeff

parsman,

:~~
: From: mohammed jakda <[EMAIL PROTECTED]>
:
: I have a single checkbox field on a form for a user to
: check or uncheck if they want to subscribe to a newsletter,
: the problem I'am having is that if the user unchecks it, then
: my insert query does not record anything such as no or 0 in
: my Dbase column, whereas as if it is left at the default
: checked it store the value "yes" in the Dbase...
:~~

just param the form field prior to the insert.




  
insert into table1 (Field1)
values ('#form.Field1#')
  


good luck,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:[EMAIL PROTECTED]


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Checkbox prob...

2000-07-27 Thread Bud

On 7/27/00, mohammed jakda penned:
>Hi,
>I have a single checkbox field on a form for a user to check or uncheck if
>they want to subscribe to a newsletter, the problem I'am having is that if
>the user unchecks it, then my insert query does not record anything such as
>no or 0 in my Dbase column, whereas as if it is left at the default checked
>it store the value "yes" in the Dbase...
>Does anyone know how to make a value be stored in the Dbase when a user
>unselects the checkbox???
>
>



insert into table1
(Field1)
values
(10)


-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Checkbox prob...

2000-07-27 Thread mohammed jakda

Hi,
I have a single checkbox field on a form for a user to check or uncheck if 
they want to subscribe to a newsletter, the problem I'am having is that if 
the user unchecks it, then my insert query does not record anything such as 
no or 0 in my Dbase column, whereas as if it is left at the default checked 
it store the value "yes" in the Dbase...
Does anyone know how to make a value be stored in the Dbase when a user 
unselects the checkbox???






insert into table1
(Field1)
values
('#form.Field1#')




Regards.

Parsman.




Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.