?? login1.asp
字號:
<html>
<body>
<% response.buffer=true %>
<% session("allow")=true %>
<%
Dim cn,rs,ID,Pwd
ID=request.form("UserName")
Pwd=request.form("password")
Set cn = Server.CreateObject("ADODB.Connection")
cn.open="Driver={SQL SERVER};Server=SUNZY;Database=xuexi;UID=sa;PWD=;"
Set rs =Server.CreateObject("ADODB.Connection")
sql = "Select * From 用戶 Where id='" &ID& "' and pwd='"&Pwd&"'"
Set rs = cn.Execute(sql)
If rs.EOF Then
response.redirect "login.asp"
else
response.redirect "index.asp"
end if
%>
<%
rs.close
cn.close
set rs=nothing
set cn=nothing
%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -