高手看下这段代码错哪了?
叫我梁大侠 2010-06-02 11:14:50 <!-- #include file = "inc/conn.asp" -->
<%
admin_name=request("usern")
admin_password=request("password")
CheckCode = trim(request("CheckCode"))
set rw = server.CreateObject("adodb.recordset")
sql = "select * from admin where admin_name='"&admin_name&"' and admin_password='"&admin_password&"'"
rw.open sql,conn,1,1
if not (rw.eof and rw.bof) then
if CheckCode<>CStr(session("CheckCode")) then
response.Write"<script> alert('验证码输入不正确!');location.href='javascript:history.go(-1)'</script>"
else
response.Write"<script>alert('欢迎您进入我的博客!');location.href='index.asp'</script>"
response.End()
end if
end if
rw.close
set rw = nothing
set conn = nothing
%>
调试发现:什么都不会出现,错误也没
空白的
高手们指点下,如需要代码,我马上贴上,谢谢!