无为清净楼资源网 Design By www.qnjia.com

protect.asp

<html>

<head>

<title>千花飞舞之春风精彩</title>

</head>

<body bgcolor="#00FFFF">

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

' 精彩的要限制的页面.

<input type="text" name="text">

' 此处可注明该页面的其它内容.

姓名:

<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所在的数据库的名字.

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>

' 如果数据库中存在用户输入的姓名和口令,则显示页面jingcai.asp的链接.

<%end if%>

</body></html>

 

[1]

标签:
|如何|何实|实现|现某|某一|一页|页面|面只|只让|让特|特定|定的|的用|用户|户浏|浏览|览?|?|

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com