北京怀石料理多少钱:关于通用ASP表单处理的问题

来源:百度文库 编辑:高考问答 时间:2024/04/29 01:32:38
最近在学ASP,这段代码调试运行时提示错误:

ASP服务器发现运行时错误:
错 误 码:0x800A0400
错误代码:&Request.Form.item(whatever)&""
错误描述:缺少语句
文件名称:X:\asptest\biadan2.asp
所在行号:21

本人刚学不懂,有没高手看下是那儿的错。东西都在下面了:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>接收表单1的数据·通用</title>
</head>

<body>
<div align="center">
<center>
<table border="1"><tr>
<td align="center"><b>表单域</b></td>
<td align="center"><b>表单域值</b></td></tr>
<%
for each whatever in request.Form
thisvalue=Request.Form(whatever)
Response.Write "<tr><td>" &whatever& "</td>"
Response.Write "<td>"
&Request.Form.item(whatever)&"</td></tr>"
next
%></table>
</center>

</div>

</body>

</html>

Request.Form.item(whatever)
应该改成
Request.Form(whatever)