check.asp

来自「医院专家挂号系统设计」· ASP 代码 · 共 18 行

ASP
18
字号

<%
'转入主要页面时检查是否已经登陆
Dim adu,adp,adi,chk
If Session("Username")="" or Session("Password")="" or Session("PatientID")="" Then
	Response.Redirect "Login.asp"
Else
	adu = Replace(Session("Username"),"'","")
	adp = Replace(Session("Password"),"'","")
	adi = Replace(Session("PatientID"),"'","")
	Set chk = Conn.Execute("Select username,password From [USER] Where username='"&adu&"' and password='"&adp&"' and ID="&adi)
	If chk.Eof and chk.Bof Then
		Response.Redirect "Login.asp"
	End if
End if
chk.Close
Set chk=Nothing
%>

⌨️ 快捷键说明

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