<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body><table align=center><form name="form1" method="post" action="reg.asp">
姓名:
<input type="text" name="name">
<br>
密码:
<input type="password" name="psw">
<br>
<br>
性别:
<input type="radio" name="sex" value="男">
男
<input type="radio" name="sex" value="女">
女 <br>
<br>
城市:
<select name="city">
<option value="上海" selected>上海</option>
<option value="北京">北京</option>
</select>
<br>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</form></table>
</body>
</html>
下面是reg.asp
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
name=request.form("name")
psw=request.form("psw")
sex=request.form("sex")
city=request.form("city")
response.write name
response.write psw
response.write sex
response.write city
%>
</body>
</html>