<html>
<head>
<title>By Winmillion</title>
</head>
<body>
<form method="post" action="2.asp">
ID:<input type="text" name="name"><br>
性别:<select name="sex">
<option>男</option>
<option>女</option>
</select><br>
编程语言(可多选):
<input name="program" type="checkbox" value="Delphi">Delphi
<input name="program" type="checkbox" value="ASM">ASM
<input name="program" type="checkbox" value="ASP">ASP
<input name="program" type="checkbox" value="MSSQL">MSSQL
<br>
留言:<textarea name="message">
</textarea> <br>
<input type="submit" name="submit" value="确定">
<input type="reset" name="submit" value="清空">
</form>
</body>
</html>
创建一个名为2的ASP页面代码如下:
<html>
<head>
<title>By Winmillion</title>
</head>
<%
dim a,b,c,d,e
response.expires=0
a=request.form("name")
b=request.form("sex")
c=request.form("message")
d=replace(c,vbcrlf,"<br>"&vbcrlf)
%>
<html>
<body>
姓名:<%=a%><br><br>
性别:<%=c%><br><br>
<%
response.write"编程语言:<br>"
for e=1 to request.form("program").count
response.write request.form("program")(e)&
"<br>"
next%>
<br>留言:<br>
<%=d%>
</body>
</html>
提示2.ASP错误!望高人指教!
<head>
<title>By Winmillion</title>
</head>
<body>
<form method="post" action="2.asp">
ID:<input type="text" name="name"><br>
性别:<select name="sex">
<option>男</option>
<option>女</option>
</select><br>
编程语言(可多选):
<input name="program" type="checkbox" value="Delphi">Delphi
<input name="program" type="checkbox" value="ASM">ASM
<input name="program" type="checkbox" value="ASP">ASP
<input name="program" type="checkbox" value="MSSQL">MSSQL
<br>
留言:<textarea name="message">
</textarea> <br>
<input type="submit" name="submit" value="确定">
<input type="reset" name="submit" value="清空">
</form>
</body>
</html>
创建一个名为2的ASP页面代码如下:
<html>
<head>
<title>By Winmillion</title>
</head>
<%
dim a,b,c,d,e
response.expires=0
a=request.form("name")
b=request.form("sex")
c=request.form("message")
d=replace(c,vbcrlf,"<br>"&vbcrlf)
%>
<html>
<body>
姓名:<%=a%><br><br>
性别:<%=c%><br><br>
<%
response.write"编程语言:<br>"
for e=1 to request.form("program").count
response.write request.form("program")(e)&
"<br>"
next%>
<br>留言:<br>
<%=d%>
</body>
</html>
提示2.ASP错误!望高人指教!