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

📄 check.asp

📁 学生档案管理系统是典型的信息管理系统(MIS),其开发主要包括后台数据库的建立和维护以及前端程序的开发两个方面。对于前者要求建立起数据一致性和完整性强、数据安全性好的库。而对于后者则要求应用程序功能完
💻 ASP
字号:
<!--#include file="conn.asp"-->

<%
dim admin_name,admin_pwd
admin_name=trim(request("name"))
admin_pwd=trim(request("pwd"))

if admin_name="" or admin_pwd="" then
response.write "<script>alert('对不起,用户名和密码不能为空!');document.location.href='admin_index.asp';</script>"
response.end
end if

set rs=server.createobject("adodb.recordset")
sql="select * from admin where admin_name='"&admin_name&"'"
rs.open sql,conn,1,1

%>
<%
if not rs.eof then
	if rs("admin_pwd")<>admin_pwd then
		response.write "<script>alert('对不起,密码不正确,请重新输入');document.location.href='admin_index.asp';</script>"
		response.end
	else
		session("user")=admin_name
		response.redirect "info_manager.asp"
	end if
else
	response.write "<script>alert('对不起,你的用户名不存在,请与管理员联系!');document.location.href='admin_index.asp';</script>"
	response.end
end if
		
%>

⌨️ 快捷键说明

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