求asp登陆代码

来源:百度知道 编辑:UC知道 时间:2024/05/17 01:45:38
本人用的是access数据库,求高人告诉代码,主要是不知道怎么与数据库里的数据比较,最好有完整的代码,我能一步一步做出来的!
sql不会,说了也不太明白的!

<!-- #include file="web.config.asp" -->
<!-- #include file="include/ClsMain.asp" -->
<!-- #include file="include/md5.asp" -->
<%

Dim myCls,uUserName,uPwd,uChkCode,tmpRs
Set myCls = new ClsMain

if Request.QueryString("Mark")<>"UserLogOut" then
if IsArray(Session("KS_CRM")) then
Session("KS_CRM") = null
Response.Redirect("Index.asp")
end if
end if

If Request.QueryString("Mark")="UserLogOut" then
Session("KS_CRM")=""
End if

If Request.QueryString("Mark")="UserLogin" then
uChkCode=myCls.delUrlSqlin(Request.Form("uChkCode"))
if uChkCode<>Session("GetCode") then myCls.Error("登陆失败:\n\n验证码错误,请返回重新输入验证码")
uUserName=myCls.delUrlSqlin(Request.Form("u