Home | Advertising Info89 USERS CURRENTLY ONLINE   
   Site Search Contact Us Sunday, September 21, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Convert Checkbox Values
From: Daniel Acuff
Date: 2/11/2000 3:28:42 PM
IP: 12.14.72.197



 

I have a form with 18 checkboxes and I need to change the value of the checkboxes from TRUE/FALSE to a 1 or a 0. This is because I was told to enter the data into the SQL fields as DataType bit for the benefit of being able to do boolean searches.

This is the code I currently have on the processing asp page which I am calling from the page with the form.
Even after processing it with this code it still writes back the values as TRUE or FALSE.

Any ideas? (Does this code HAVE to be processed through a function on the page the form is on? i.e. function, would that make a difference?)


<%

Dim html

if request.form("checkbox1") = "on" then
tempVar = 1
else
tempVar = 0
end if

html= Request.Form("checkbox1")

Response.Write html

%>


Thanks,
Daniel

Follow Up - Re: Convert Checkbox Values - David Churchyard 2/14/2000 11:43:29 AM

Follow Up - Re: Convert Checkbox Values - David Churchyard 2/14/2000 11:45:44 AM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com