?? check_company_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>
<body>
<%
if session("user_name")<>"" then
response.write "<script LANGUAGE='javascript'>alert('請先注銷客戶登錄。');history.go(-1);</script>"
else
companyname=lcase(trim(request("companyname")))
companypw=lcase(trim(request("companypw")))
if companyname="" or companypw="" then
errmsg="公司名稱和密碼不能為空!"
founderr=true
else
sql="select * from scott.company_info where company_name='"&companyname&"'"
set rs=Server.CreateObject("ADODB.recordset")
rs.open sql,connstr
if rs.eof then
errmsg="您輸入的公司名稱或者密碼有問題!"
founderr=true
else if md5(companypw)=rs("company_password") then
session("company_name")=companyname
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
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -