📄 userlogon.asp
字号:
<!--#include file="opendb.asp"-->
<%
username=trim(request.Form("username"))
pwd=trim(request.Form("password"))
strSQL = "Select * from UserInf Where UserName="&"'"&username&"'" &" AND Password="&"'"&pwd&"'"
rst.CursorType=3
rst.open strSQL
if rst.RecordCount>0 then
session("UserName")=rst("UserName")
session("ID")=rst("ID")
%>
<script language="javascript">
alert("OK,Logo is right!");
window.location="index.asp"
</script>
<%else%>
<script language="javascript">
alert("Wrong:The name or the password is wrong!");
window.location="userlogon.htm";
</script>>
<%end if%>
<!--#include file="closedb.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -