当前位置: 移动技术网 > IT编程>开发语言>其他编程 > 如何实现某一页面只让特定的用户浏览?

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

2017年12月08日  | 移动技术网IT编程  | 我要评论
protect.asp<html><head><title>千花飞舞之春风精

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]

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网