[求助]退出页面再点击就会出错
当会员没有登陆时,页面不能看,当会员登陆时,页面可以看,当会员退出登陆时,再点击页面就会出错,出错内容是“处理URL时出错,请于管理员联系”这是什么原因?请高手指点指点?代码是这样写的:
<%
exec="select * from info where id="&request.querystring("id")
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
info_Array=split(rs("typ3"),"|")
For j=0 to Ubound(info_Array)-1
if info_Array(j)=1 then
limit1=1
elseif info_Array(j)=2 then
limit2=2
elseif info_Array(j)=3 then
limit3=3
elseif info_Array(j)=4 then
limit4=4
elseif info_Array(j)=5 then
limit5=5
elseif info_Array(j)=6 then
limit6=1
elseif info_Array(j)=7 then
limit7=7
elseif info_Array(j)=8 then
limit8=8
elseif info_Array(j)=9 then
limit9=1
end if
Next
if limit1<>1 and limit6<>1 and limit9<>1 then
if (limit2=2 and session("typ")<>2) then
Response.write "<script language='javascript'>" & chr(13)
Response.write "alert('对不起,此信息您无权查看!');" & Chr(13)
Response.write "window.close();"&Chr(13)
Response.write "</script>" & Chr(13)
Response.End
elseif (limit3=3 and session("typ")<>3) then
Response.write "<script language='javascript'>" & chr(13)
Response.write "alert('对不起,此信息您无权查看!');" & Chr(13)
Response.write "window.close();"&Chr(13)
Response.write "</script>" & Chr(13)
Response.End
elseif (limit4=4 and session("typ")<>4) then
Response.write "<script language='javascript'>" & chr(13)
Response.write "alert('对不起,此信息您无权查看!');" & Chr(13)
Response.write "window.close();"&Chr(13)
Response.write "</script>" & Chr(13)
Response.End
elseif (limit5=5 and session("typ")<>5) then
Response.write "<script language='javascript'>" & chr(13)
Response.write "alert('对不起,此信息您无权查看!');" & Chr(13)
Response.write "window.close();"&Chr(13)
Response.write "</script>" & Chr(13)
Response.End
elseif (limit7=7 and session("typ")<>7) then
Response.write "<script language='javascript'>" & chr(13)
Response.write "alert('对不起,此信息您无权查看!');" & Chr(13)
Response.write "window.close();"&Chr(13)
Response.write "</script>" & Chr(13)
Response.End
elseif (limit8=8 and session("typ")<>8) then
Response.write "<script language='javascript'>" & chr(13)
Response.write "alert('对不起,此信息您无权查看!');" & Chr(13)
Response.write "window.close();"&Chr(13)
Response.write "</script>" & Chr(13)
Response.End
end if
end if
rs("num") = rs("num")+1
rs.update
title=rs("tit")
username=rs("username")
prenext=rs("typ2")
prenext2=rs("typ4")
infoid = request.querystring("id")
%>
[此贴子已经被作者于2006-8-14 16:25:36编辑过]