日期:2014-05-17  浏览次数:20921 次

页面出错了 求大神帮忙看看
<%
username=replace(request.form("TxtUserName"),"'","''")
password=replace(request.form("TxtPassword"),"'","''")
sql="select * from user where(U_Name='"&username&"' and U_Pwd='"&password&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if not rs.eof then
  select case rs("U_Qx")
  case 0:
  session("check")="checked"
  response.Redirect "guanli.asp?id=<%=rs("U_ID")%>"
  case 1
  response.redirect "Default.asp?id=<%=rs("U_ID")%>"
  end select
else
session("check")=""
response.Write "<br/><br/><br/><p align='center'>对不起,请填写正确的信息</p>"
response.Write "<p align='center'><a href='login.asp'>点击放回登陆页面</a></p> "
end if
rs.close
conn.close
%>


------解决方案--------------------
探讨

引用:
报什么错咯?

没报错 就是 U_ID值传过去没了 传过去变成 guanli.asp?id=