Link to home
Start Free TrialLog in
Avatar of markneelon
markneelon

asked on

Checkbox count

how do I get a count of the total number of checkboxes checked in a table?  I currently have a listing of records that display 20 per page and am using rs.RecordCount to count the total number of records. below is the code for the checkbox.

<%x_Printed = rs("Printed")%>
<input type="checkbox" disabled <%if (x_printed)=true then%>
checked value="True" >
<%else%>
>
<%end if%>
Avatar of farzinm
farzinm

You can have a variable to count
like this
<%
Dim count
count=0
x_Printed = rs("Printed")%>
<input type="checkbox" disabled <%if (x_printed)=true then
 count=count+1%>
checked value="True" >
<%else%>
>
<%end if%>
<%Response.write "Total checkbox count " & count%>
ASKER CERTIFIED SOLUTION
Avatar of chisholmd
chisholmd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
markneelon:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
Avatar of Gary
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Answer by chisholmd

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
GaryC123