|
| |
|
|
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!
|
|
|
|
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.
|
|
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
|
|
|