3点啦,帮忙一下,找不出原因
<%@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上吧?谢谢
问题点数:40、回复次数:5Top
1 楼nssp()回复于 2003-09-04 03:17:17 得分 10
把这一行“if name = empty then”和这一行“if word = empty then”分别改成
if trim(name)="" then和if word="" then
另外,name和word都是asp的系统保留字,最好能换一个名字命名,否则很容易出错Top
2 楼yaozhg(网站开发架构师)回复于 2003-09-04 05:34:42 得分 0
是呀,有时候不小心用上了系统保留字那才是要命的,一时不知道还弄了大半年。
Top
3 楼tvhero(改学VB中...)回复于 2003-09-04 05:42:36 得分 25
好像e-mail中间不能用"-",把它去掉,改为email试试!Top
4 楼tvhero(改学VB中...)回复于 2003-09-04 05:44:27 得分 0
补充:你可能把"_"抄成"-"了,^_^Top
5 楼SUN1842(sun)回复于 2003-09-04 08:16:38 得分 5
同意
upTop



