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%>
<%x_Printed = rs("Printed")%>
<input type="checkbox" disabled <%if (x_printed)=true then%>
checked value="True" >
<%else%>
>
<%end if%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
markneelon,
Maybe this link might help...
https://www.experts-exchange.com/questions/20450556/request-form-with-a-local-variable.html
HAppy programming...
Maybe this link might help...
https://www.experts-exchange.com/questions/20450556/request-form-with-a-local-variable.html
HAppy programming...
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.
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.
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
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
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%>