?? check_login.0.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
str = "select id,login_name from member where login_name = '" & trim(Request.Form("login_name")) & "' and password = '" & trim(Request.Form("password")) & "'"
with session("rs")
.open str,session("conn")
if .eof then
%>
<script language="JavaScript" type="text/JavaScript">
window.alert("您的賬號、密碼輸入不正確!");
history.back();
</script>
<%
else
session("login_name") = .Fields("login_name")
session("member_id") = .Fields("id")
'application(session("login_name")) = "online"
%>
<script language="JavaScript" type="text/JavaScript">
window.alert("登錄成功!");
</script>
<%
.close
end if
end with
Server.Execute("../include/check_session.asp")
Response.Redirect("../index/index.asp")
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -