protect.asp
html>
head>
title>千花飛舞之春風精彩/title>
/head>
body bgcolor="#00FFFF">
form action="Protect.asp" method="post">
' 精彩的要限制的頁面.
input type="text" name="text">
' 此處可注明該頁面的其它內(nèi)容.
姓名:
input type="password" size="20" name="password">
口令:
input type="submit" name="B1" value="查詢">/p>/form>
%set conn=server.createobject("adodb.connection")
conn.open "asptest"
' asptest是存放客戶信息的表單permission所在的數(shù)據(jù)庫的名字.
sql1="select from permission where xm='"request.form("text") "' and mima='"request.form ("password")"'"
set rs=conn.execute(sql1)%>
% if not rs.eof then%>a href="jingcai.asp">春風精彩/a>
' 如果數(shù)據(jù)庫中存在用戶輸入的姓名和口令,則顯示頁面jingcai.asp的鏈接.
%end if%>
/body>/html>
[1]