index.asp <html>
<head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新建网页 1</title> </head>
<body>
<form method="POST" name="form1" action="chakan.asp"> <p><select size="1" name="shengfen"> <option selected>广东</option> <option>北京</option> <option>上海</option> <option>南京</option> </select></p> <p><input type="checkbox" name="C1" value="学习">学习<input type="checkbox" name="C2" value="asp">asp<input type="checkbox" name="C3" value="asp.net">asp.net<input type="checkbox" name="C4" value="11">ll</p> <p><input type="radio" value="111" checked name="R1" >111<input type="radio" name="R1" value="222">222<input type="radio" name="R1" value="333">333<input type="submit" value="提交" name="B1"><input type="reset" value="重置" name="B2"></p> </form> </body> </html>
chankan.asp
<% shengfen=request("shengfen") hao=request("R1") c1=request("c1") c2=request("c2") c3=request("c3") c4=request("c4") %> <%=shengfen%><br> <%=hao%><br> <% if c1<>"" then response.write c1 end if if c2<>"" then response.write c2 end if if c3<>"" then response.write c3 end if if c4<>"" then response.write c4 end if %>
如果你有更好的办法,请发上来大家交流交流