![]() |
#2
afeilee2010-05-09 19:03
出现有如下两个错误
{1003.html} <html> <head> <title>表单传送数据</title> </title> </head> <body> <p align="center">请输入注册信息</p> <form action="1003.asp" method="post"> <label>用户名: <input type="text" name="用户名"><br> <label>密 码: <input type="password" name="密码"><br> <label>性别: <input type="radio" name="sex" value="男">男 <input type="radio" name="sex" value="女">女<br> <label>爱好:<select multiple size="4" name="favour"> <option selected value="跑步">跑步</option> <option selected value="看书">看书</option> <option value="相象">相象</option> <option value="游戏">游戏</option></select><br> 自我:<br> <textarea name="自我分析" rows="5" cols="140" wrap="physical"> </textarea><br> <input type="submit" value="注册"> <input type="reset" value="重新注册"><br> </body> </html> {1003.asp} <html> <head> <title>request.form</title> </head> <body> <table border="1"> <th>参数名</th> <th>参数值</th> <% for each program in request.form %> <tr> <td><% =program %></td> <% if request.form(program).count>1 then %> <td> <% for i=1 to request.form(program).count %> <% =request.form(program)(i) %> <br> <% next %> </td> <% else %> <td> <% =request.form(program) %> </td> <% end if %> <% next %> </tr> </table> </body> </html> |
{1003.html}
<html>
<head>
<title>表单传送数据</title>
</title>
</head>
<body>
<p align="center">请输入注册信息</p>
<form action="s1003.asp" method="post">
<label>用户名:
<input type="text" name="用户名"><br>
<label>密 码:
<input type="password" name="密码"><br>
<label>性别: <input type="radio" name="sex" value="男">男
<input type="radio" name="sex" value="女">女<br>
<label>爱好:<select multiple size="4" name="favour">
<option selected value="跑步">跑步</option>
<option selected value="看书">看书</option>
<option value="相象">相象</option>
<option value="游戏">游戏</option></select><br>
自我:<br>
<textarea name="自我分析" rows="5" cols="140" wrap="physical">
</textarea><br>
<input type="submit" value="注册">
<input type="reset" value="重新注册"><br>
</body>
</html>
{1003.asp}
<html>
<head>
<title>request.form</title>
</head>
<body>
<table border="1">
<th>参数名</th>
<th>参数值</th>
<%
for each program in request.form
%>
<tr>
<td><% =program %></td>
<%
if request.form(program).count>1 then
%>
<td>
<%
for i=1 to request.form(grogram).count
%>
<% =request.form(program)(i) %>
<br>
<%
next
%>
</td>
<%
else
%>
<td>
<% =request.form(program) %>
</td>
<%
end if
%>
<%
next
%>
</tr>
</table>
</body>
</html>
一开始写好了,能正常运行,可后来就不行了,我什么就没做改变(刚刚才开始学)。
请大侠们帮一下忙!