⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chk_admin_login.asp

📁 报名系统
💻 ASP
字号:
<!--#include file=conn.asp-->
<%
dim sql
dim rs
dim seekerrs
dim founduser
dim username
dim companyid
dim password
dim errmsg
dim uname
dim founderr
founderr=false
FoundUser=false
username=trim(request.form("username"))
password=trim(Request.Form("password"))
if username="" then
   response.redirect "admin_login.asp"
end if
if password="" then
     response.redirect "admin_login.asp"
end if

set rs=server.createobject("adodb.recordset")
sql="select * from admin where username='"&username&"'"
rs.open sql,conn,1,1
if not rs.eof then
 if password=rs("password") then
    uname=rs("uname")

   response.cookies("adminok")=true
response.redirect "admin_edit.asp?uname="&uname&""
 else
     response.redirect "admin_login.asp"
      end if
else
     response.redirect "admin_login.asp"
end if
rs.close
conn.close
set rs=nothing
set conn=nothing

%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -