Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

How to Determine whether a checbox is checked or not in classic ASP?
Posted
Updated 2-Sep-12 21:17pm
v2

 
Share this answer
 
Comments
Anand Deshmukh 3-Sep-12 5:56am    
This link is for asp.net,i m looking for classic asp code,Would you help me on this?
Hi,
HTML
<form method="POST" action="" name="myform">

<p><input type="checkbox" name="R1" value="V1">1</p>
<p><input type="checkbox" name="R1" value="V2" >2</p>
<p><input type="checkbox" name="R1" value="V3">3</p>
<p><input type="submit" value="submit" name="B1" ></p>
</form>
</body>
</html>

<%
rc = Request.Form("R1").Count
for i = 1 to rc
rv = Request.Form("R1")(i)
if rv = "V2" then
'V2 is selected
exit for
end if
next
%>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900