什么姓氏是皇族后代:asp 留言版的问题

来源:百度文库 编辑:高校问答 时间:2024/05/01 22:22:09
本人写了个留言板
index输入后提交到book.asp进行判断然后再提交到showbook.asp输出
book.asp刚开始有个判断语句 判断输入的值是否为空,为空则中止 但是我全部输入了 他也提示我输入的是为空,
但是都有值啊/
index 没有错
book.asp:

<%
name=request("name")
email=request("mail")
subject=request("subject")
memo=request("memo")
if name=""or email=""or subject=""or nemo="" then
response.write"输入框不能为空白"
response.end
end if
line1="留言人:"&name
line1=line1 & string(5,"")
email="<a href=mailto:"&email& ">"&email &"</a>"
line1=line1 &"email "&email&"<br>"
line2="主题:"&subject&"<br>"
memo=replace(memo,vbcrlf,"<br>")
line3="<table border=0 bgcolor=#00FFFF><tr><td>"
line3=line3& memo&" </tr></td></table>"
line4="时间:" &now()
on error resume next
set fso=server.createobject("scripting.filesystemobject")
application.lock
filepath=server.mappath("book.txt")
oldpath=server.mappath("bookold.txt")
fso.movefile filepath,oldfilepath
set fin=fso.opentextfile(oldfilepath,,true)
set foun=fso.createtextfile(filepath)
fout.writeline line1
fout.writeline line2
fout.writeline line3
fout.writeline line4
fout.writeline "<br>"
fout.writeline fin.readall
fin.close
fso.deletefile oldfilepath,true
applition.unlock
response.redirect"showbook.asp"
%>

是不是这里面的错误阿 前辈们。。请教
还是不行 我发给你。 QQ 43771003

if name=""or email=""or subject=""or nemo="" then
中 memo 写错成 nemo 了。
----------------------------------------------------
如果不是这个问题那就是你的输入页面的问题了。
看看用
response.write name & "<br>" & email & "<br>" & subject & "<br>" & memo
后面的都注释掉。
有没有显示!