?? check_user_login.asp
字號:
<%@LANGUAGE="VBSCRIPT"%>
<!-- #include file="../common/conn.asp" -->
<!-- #include file="../common/md5.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>檢驗用戶帳號</title>
</head>
<style>
td {
font-size: 13px;
}
</style>
<body>
<div align="left"><!-- #include file="pagetop.asp" --></div>
<%
if session("company_name")<>"" then
response.write "<script LANGUAGE='javascript'>alert('請先注銷公司登錄。');history.go(-1);</script>"
else
userid=lcase(trim(request("userid")))
userpw=lcase(trim(request("userpw")))
if userid="" or userpw="" then
errmsg="客戶名稱和密碼不能為空!"
founderr=true
else
sql="select * from scott.user_info where user_id='"&userid&"'"
set rs=Server.CreateObject("ADODB.recordset")
rs.open sql,connstr
if rs.eof then
errmsg="您輸入的客戶名稱或者密碼有問題!"
founderr=true
else if md5(userpw)=rs("user_password") then
session("user_name")=userid
session.Timeout=30
else
errmsg="您輸入的客戶名稱或者密碼有問題!"
founderr=true
end if
end if
rs.close
set rs=nothing
end if
if founderr=false then
response.redirect "index.asp"
else
response.write "<script LANGUAGE='javascript'>alert('"&errmsg&"');history.go(-1);</script>"
end if
end if
%>
<!-- #include file="pagefooter.html" -->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -