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]
標(biāo)簽:中山 襄陽 雞西 遵義 邯鄲 朔州 威海 柳州
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《如何實現(xiàn)某一頁面只讓特定的用戶瀏覽?》,本文關(guān)鍵詞 如何,實現(xiàn),某一,頁面,只,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。