欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

如何實現(xiàn)某一頁面只讓特定的用戶瀏覽?

 更新時間:2006年11月16日 00:00:00   作者:  

protect.asp

<html>

<head>

<title>千花飛舞之春風(fēng)精彩</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">春風(fēng)精彩</a>

' 如果數(shù)據(jù)庫中存在用戶輸入的姓名和口令,則顯示頁面jingcai.asp的鏈接.

<%end if%>

</body></html>

 

[1]

相關(guān)文章

最新評論