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

2023-12-05 0 546

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]

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 编程10000问 如何实现某一页面只让特定的用户浏览? https://www.u-9.cn/biancheng/bc10000/96052.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务