<html>
<body>
<form name="form" method="post" action="5-1.asp">
<p>
姓名:
<input type="text" name="textfield">
</p>
<p>性别:
<input type="radio" name="radiobutton" value="男">
男
<input type="radio" name="radiobutton" value="女">
女
</p>
<p>爱好:
<label>
<input type="checkbox" name="checkbox" value="1" />
看小说</label>
<label>
<input type="checkbox" name="checkbox" value="2" />
听音乐</label>
<label>
<input type="checkbox" name="checkbox" value="3" />
网上冲浪</label>
</p>
<p>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="全部重写">
</p>
</form>
</body>
</html>
以上是html页
<html>
<body>
<p>您好!
<%
request.form("textfield")
response.write"<br>"
if request("radiobutton")="男" then
response.write"先生!"
else
response.write"小姐!"
end if
response.write"欢迎您访问本站!"
response.write"<br>"
response.write"你的个人资料如下:"
response.write"<br>"
response.write"姓名:"
request.form("textfield")
response.write"<br>"
response.write"性别:"
request.form("radiobutton")
response.write"<br>"
response.write"爱好:"
For i = 1 To request("checkbox").count
response.write request("checkbox")(i)
%>
</body>
</html>
一上是asp页
李晓健