3点啦,帮忙一下,找不出原因

ningjiyong 2003-09-04 03:11:16
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言板</title>
</head>

<body bgcolor="ffffff">
<form action="liuyanban.asp" method="post">
<table border=0>
<tr>
<td>姓名:</td>
<td><input type="text"size="20" name="name"></td>
</tr>
<tr>
<td>e-mail:</td>
<td><input type="text"size="60" name="e-mail"></td>
</tr>
<tr valign="top">
<td>留言:</td>
<td><textarea name="word" rows="6" cols="60"></textarea></td>
</tr>
</table>
<input type=submit value="提交">
<input type=reset value="重写">
</form>
</body>
</html>
下面是liuyanban.asp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>liuyanban.asp</title>
</head>
<body bgcolor="ffffff">
<%
name = request("name")
e-mail = request("e-mail")
word = request("word")
if name = empty then
response.write"姓名字段未填数据,请返回上一页,重新输入"
response.end
end if
if word = empty then
response.write"留言没填些,您逗我玩呢!!!???"
response.end
end if
word = replace(word,vbCrlf,"<br>")
%>
<table width="80" border="0">
<tr><td>留言者:<%=name%></td><td>E-MAIL:<%=e-mail%></td></tr>
<tr bgcolor=yellow><td colspan=2><%=word%></td></tr>
</table>
</body>
</html>
无法正常返回显示
Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

Microsoft VBScript 运行时错误 错误 '800a000d'

类型不匹配: 'e'

/liuyanban.asp,行9



小弟很菜,并且是按书上的例子搬上来的,,我估计问题在liuyanban.asp上吧?谢谢
...全文
13 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
SUN1842 2003-09-04
  • 打赏
  • 举报
回复
同意

up
tvhero 2003-09-04
  • 打赏
  • 举报
回复
补充:你可能把"_"抄成"-"了,^_^
tvhero 2003-09-04
  • 打赏
  • 举报
回复
好像e-mail中间不能用"-",把它去掉,改为email试试!
yaozhg 2003-09-04
  • 打赏
  • 举报
回复
是呀,有时候不小心用上了系统保留字那才是要命的,一时不知道还弄了大半年。

nssp 2003-09-04
  • 打赏
  • 举报
回复
把这一行“if name = empty then”和这一行“if word = empty then”分别改成
if trim(name)="" then和if word="" then

另外,name和word都是asp的系统保留字,最好能换一个名字命名,否则很容易出错

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧