?? deal_logon.asp
字號:
<!-- #include virtual="protect.inc" -->
<!-- #include file="opendb.inc" -->
<!-- #include virtual="adovbs.inc" -->
<html>
<head>
<title>登錄處理</title>
</head>
<body>
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Set Rs=Server.CreateObject("ADODB.RecordSet")
Conn.Open(sqlOpenDB) '打開數據庫
Sql="Select Name From Customer Where Name='" & Request.Form("Name") & "'and Password='" & Request.Form("Password") & "'"
Rs.Open Sql,Conn
If Rs.Eof Then
Response.Write "<p><center><b>用戶名或密碼錯誤,請重新登錄!</b></center></p>"
Else
Session("User")=Rs("Name")
%>
<script language="JavaScript">
<!--
parent.topFrame.navigate("menu.asp");
//-->
</script>
<p><center><b>登錄成功!</b></center></p>
<%
End If
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -