错在那?

yjzz 2001-09-04 05:04:14
<%
dim sql
ren=request("ren")
nian=request("nian")
yue=request("yue")
ri=request("ri")
%>
<%
if ren<>"" then
if nian<>"" and yue<>"" and ri<>"" then
sql="select * from 查询 where 发布人='"+ren+"' and 日期 ='"+nian+"-"+yue+"-"+ri+"'"
session("sql")=sql
response redirect "chaxun2.asp"
end if
if nian<>"" and yue<>"" and ri="" then
sql="select * from 查询 where 发布人='"+ren+"' and 日期 like'"+nian+"-"+yue+"*'"
session("sql")=sql
response redirect "chaxun2.asp"
end if
if nian<>"" and yue="" and ri="" then
sql="select * from 查询 where 发布人='"+ren+"' 日期 like'"+nian+"*'"
session("sql")=sql
response redirect "chaxun2.asp"


end if
end if
%>
-------------------------------------------------------------------------
为什么报错?
Microsoft VBScript 编译器错误 错误 '800a0401'

语句未结束

/chaxun1.asp, 行13

response redirect "chaxun2.asp"
------------------^
请各位之指教
谢了!
...全文
73 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lazywolf 2001-09-04
  • 打赏
  • 举报
回复
呵呵,这分太容易拿了!在下对楼上两位的运气佩服得五体投地!
www525 2001-09-04
  • 打赏
  • 举报
回复
就是,应是response.redirect "chaxun2.asp" ,少个点
flykakaru 2001-09-04
  • 打赏
  • 举报
回复
response redirect "chaxun2.asp"漏了个点,应该是
response.redirect "chaxun2.asp"

28,406

社区成员

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

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