主题:菜鸟请教Request的问题.
*************************************************************
<html>
<head>
</head>
<body>
<p> 请填写你的爱好 </p>
<form method="POST" action="form.asp"><p>
<input type="text" name="hobby" size="20"><br>
<input type="checkbox" name="hobby" value=" football "> 足球
<input type="checkbox" name="hobby" value=" pingpong "> 乒乓球 </p>
<p>
<input type="submit" value=" 发送 " name="B1">
<input type="reset" value=" 重填 " name="B2"></p></form>
<%
For Each i In Request.QueryString("hobby")
Response.Write i & "<BR>"
Next
%>
</body>
</html>
********************************************************************
code如上. 但是点击发送后,显示不了内容. 如果把
"For Each i In Request.QueryString("hobby")" 中的 " Request.QueryString"
换成" Request.Form" 就可以了.
请问我用QueryString哪里有错误?
望赐教.谢谢!
<html>
<head>
</head>
<body>
<p> 请填写你的爱好 </p>
<form method="POST" action="form.asp"><p>
<input type="text" name="hobby" size="20"><br>
<input type="checkbox" name="hobby" value=" football "> 足球
<input type="checkbox" name="hobby" value=" pingpong "> 乒乓球 </p>
<p>
<input type="submit" value=" 发送 " name="B1">
<input type="reset" value=" 重填 " name="B2"></p></form>
<%
For Each i In Request.QueryString("hobby")
Response.Write i & "<BR>"
Next
%>
</body>
</html>
********************************************************************
code如上. 但是点击发送后,显示不了内容. 如果把
"For Each i In Request.QueryString("hobby")" 中的 " Request.QueryString"
换成" Request.Form" 就可以了.
请问我用QueryString哪里有错误?
望赐教.谢谢!