📄 check_user_login.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%
dim conn
dim connstr
Set conn=Server.CreateObject("ADODB.Recordset")
connstr="Driver={Microsoft ODBC for Oracle};server=mylink;uid=system;pwd=system;"
%>
<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 GSCOTT.user_info_table where user_id='"&userid&"'"
set rs=Server.CreateObject("ADODB.recordset")
rs.open sql,connstr
if rs.eof then
errmsg="您输入的客户名称或者密码有问题!"
founderr=true
else if 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 + -