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

怎樣避免直接在地址欄敲入U(xiǎn)RL即可繞過(guò)登錄頁(yè)的錯(cuò)誤?

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

第一個(gè)辦法:用兩個(gè)文件來(lái)解決這個(gè)問(wèn)題:userandpwd.aspsecretarticle.asp。前者只負(fù)責(zé)提供輸入用戶名和密碼,由后者來(lái)完成驗(yàn)證工作。這樣即使知道了asppwdrst.asp 所在的 URL,也決不會(huì)看到什么內(nèi)容的。

userandpwd.asp

< html >

< body >

< form name="form1"action=

"secretarticle.asp" method_

="POST" >

< input type="hidden" name="VTI-GROUP" value=_"0" >

< div align="center" >< center >< p >

賬號(hào)< input type="text"

name="T1" size="20" >

密碼< input type ="password" name="T2" size=_"20" >

< input type="submit" value="確認(rèn)" name=_"B1" >

< /p >< /center >< /div >

< /form >

< /body >

< /html >

 

secretarticle.asp

' 秘密資料所在頁(yè),并負(fù)責(zé)驗(yàn)證賬號(hào)和密碼(賬號(hào):liyanbing,密碼:13066093625,通過(guò)之后,才可瀏覽.

< html >

< % if rtrim(request.form("t1"))=

 "liyanbing” and_ rtrim(request.form("t2"))=

 "13066093625" then % >

< body >

< p align=“center” >< font face="宋體" size="7"_ color="#0000ff" >

恭喜,登錄成功!

< /font >< /p >

< /body >

< % else % >

< body >

< p align="center" >< font face="宋體" size="7"_ color="#0000ff" >

請(qǐng)輸入用戶名和密碼!

< /font >< /p >

< /body >

< % end if % >

< /html >

 

第二個(gè)辦法:更簡(jiǎn)單一些,但實(shí)現(xiàn)同樣的功能:

login.asp

' 登錄頁(yè)面

< %@ Language=VBScipt % >

< @Response.Buffer=true% >

< html >

< head >< title >撼雪噴云之歡迎登錄< /title >< /head >

< body >

< %

if request("username")="liyanbing" and request("password")="13066093625" then

response.redirect "chunfeng.asp"

' 預(yù)設(shè)賬號(hào):liyanbing;密碼:13066093625;資料頁(yè)面:chunfeng.asp.

end if

% >

< font style="font-size:12pt" >請(qǐng)輸入您的賬號(hào)和密碼"< /font >< br >

< form action="login.asp" method="post" >

< br >賬號(hào):< input type=text name="username" >

< br >密碼:< input type=password name="password" >

< br >< input type=submit value="登錄" >

< /form >

< /body >

< /html >

 

[1]

相關(guān)文章

最新評(píng)論