a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Counting Check Boxes

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Counting Check Boxes
Page: [1]
 
FrogMan

 

Posts: 108
From: Lewiston, Idaho US
Status: offline

 
Counting Check Boxes - 4/7/2001 20:39:00   
Okay, I am at it again and getting frustrated. Simple stuff can really get you.
I have a front page ASP form that has a large list of names. I have a "check" box in front of each name. I have assigned an abbrev. name for each check box and a Value: YES,and not checked. there are a couple dozen of these check boxes and I want to know how many have been checked. Using the Sum I have to make a very long string to count each "1". There has got to be a simpler way. Oh, I might add I plan to have the minimum set as "12" must be checked or it defaults to 12.

Toto, here we are, lost again.

Spooky

 

Posts: 26617
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Counting Check Boxes - 4/7/2001 16:52:00   
Are they all different names? if so, and they are the only form elements with a YES value then something like this may work :

iCount = 0
For each item in request.form
If request.form(item) = "YES" then
iCount = iCount + 1
End if
Next

Resonse.write iCount

------------------
Spooky
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to FrogMan)
FrogMan

 

Posts: 108
From: Lewiston, Idaho US
Status: offline

 
RE: Counting Check Boxes - 4/7/2001 20:43:00   
This is getting to be nuts. I have just about destroyed the entire system I have put together while attempting to make other things work. Currently "fighting" the Confirmation page of the information, and all I get is the "Field Names" to display. I have upgraded the WEB Server to SR1a, but still no luck.

Anyway, I'll try what your saying. It will take a few minutes to restore the original application, but I should have it in a little while. The field names "are" all diffferent so what you are suggesting should work. Thank you.


(in reply to FrogMan)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Counting Check Boxes
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts