<form name="f" method="post" action="">
<input type="checkbox" name="c" value="1">
<input type="checkbox" name="c" value="2">
<input type="checkbox" name="c" value="3">
<input type="checkbox" name="c" value="4">
<input type="checkbox" name="c" value="5">
<input type="checkbox" name="c" value="6">
<input type="checkbox" name="c" value="7">
<input type="submit" value="submit">
</form>
<%
Response.Write Request.form ("c")
%>

解决方案 »

  1.   

    你在后台(以VBS为例):
    dim arr : arr = split(request.form("checkboxName"), ", ");若是在前台(以JS为例):
    var a = document.getElementsByName("checkboxName");
    for(var i=0; i<a.length; i++)
    {
      if(a[i].checked) alert(a[i].value);
    }
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    </HEAD>
    <BODY>
    <input type="checkbox" value="1" name="ckboxs">1
    <input type="checkbox" value="2" name="ckboxs">2
    <input type="checkbox" value="3" name="ckboxs">3
    <input type="checkbox" value="4" name="ckboxs">4
    <input type="button" value="取值" onclick="getchkbox()">
    </BODY>
    <script>
      function getchkbox()
      {
    var strVal=""
    for (i=0;i<document.all.ckboxs.length;i++) 
    {  
       if (document.all.ckboxs[i].checked)
     strVal+=document.all.ckboxs[i].value+","
    }
        alert(strVal)
      }
    </script>
    </HTML>
      

  3.   

    放在数组中:直接打散strVal,如: arrValue = strVal.split(",")