asp登录模块
别人的登录模块中,怎么不能看到它的核心代码?比如说连接数据库之类的代码,我一直搞不懂。麻烦高手发一个asp的登录模块的完全代码,小弟参考一下,谢谢!
set rs = server.createobject("adodb.recordset") sql = "select * from news where UserName = '"&username&"'" rs.open sql,conn,1,3 if rs.eof and rs.bof then Response.write "<script>alert('没有这个用户名!');</script>" Response.End() else if rs("password") <> md5(password) then Response.write "<script>alert('密码错误!');</script>" Response.End() else Response.Redirect("main.asp") end if end if rs.Close Set rs=Nothing