asp 调试求助
网上下的一个站,测试发现有一个错误,但找不出原因,向各位求教!view_info.asp 里提交留言到savehf.asp,(action="savehf.asp"),
经过savehf.asp判断后递交review.asp,(Response.Write "<script language=""javascript"">this.close();this.opener.location='review.asp?id="&id&"';</script>")
reveiw.asp中有如下语句:
<%Dim intInfoKey
Dim rdsInfo
Dim sqlInfo
Dim sqlUpdateInfoHits
intInfoKey =changechr(Request("Id"))
if intInfoKey = "" then
response.write"<SCRIPT language=JavaScript>alert('发生错误!');"
response.write"javascript:history.back();</SCRIPT>"
response.end
end if
set rdsInfo = Server.CreateObject("ADODB.Recordset")
sqlInfo = "Select * From Dat_Information Where InfoKey = "& intInfoKey
rdsInfo.Open sqlInfo,Conn,1,1
if rdsInfo.eof then
response.write"<SCRIPT language=JavaScript>alert('发生错误!');"
response.write"javascript:history.back();</SCRIPT>"
response.end
else
%>
现在情况是,用户没有登录的情况下,使用正常,但如果用户在登录的情况下回复,就被上面的语句中断而“发生错误”了。(view_info.asp 和review.asp中都有调用left.asp,left.asp页为用户登录页,登录后记录用户信息。)(估计和left.asp记录有关,但找不出,大家给个思路吧。)