tre_login.asp

来自「教学在线系统」· ASP 代码 · 共 22 行

ASP
22
字号
<!--#include file="../conndb/conn.asp"-->
<%
'处理考试登陆
getstuid = replace(trim(request("stuid")),"'","''")
getpassword= replace(trim(request("password")),"'","''")
rssql = "select * from Tab_student where ID = '"&getstuid&"' and PWD = '"&getpassword&"'"
set rs = conn.Execute(rssql)
if(rs.eof)then
response.redirect("../Login.asp?id=false")
else
session("stuid") = getstuid
session("pwd") = getpassword
'session("proid") = rs("profession")
'session("log_time") = now();
response.redirect("../Main.asp")
End if
rs.close
set rs = nothing
conn.close
set conn = nothing
%>

⌨️ 快捷键说明

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