?? checkuser.asp
字號(hào):
<!--#include file="conn.asp"-->
<!--#include file="error.asp"-->
<!--#include file="md5.asp"-->
<title><%=sitename%></title>
<%
dim user,password
user=lcase(trim(request.form("user")))
password=request.form("password")
if user="" then
founderr=true
errinfo="<li>請(qǐng)輸入帳號(hào)<br>"
else
set rs=conn.execute("select id from user where user='"&user&"'")
if rs.eof and rs.bof then
founderr=true
errinfo="<li>你輸入的帳號(hào)有誤<br>"
end if
set rs=nothing
end if
if password="" then
founderr=true
errinfo=errinfo&"<li>請(qǐng)輸入密碼<br>"
else
set rs=conn.execute("select id from user where password='"&md5(password)&"'")
if rs.eof and rs.bof then
founderr=true
errinfo=errinfo&"<li>你輸入的密碼有誤<br>"
end if
set rs=nothing
end if
if founderr=true then
call errweb()
else
session("member_address_list")=user
conn.execute("update user set logindate=now() where user='"&user&"'")
response.redirect"main.asp"
end if
conn.close
set conn=nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -