欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-04-15 09:25:50
protect.asp千花飞舞之春风精...</div> <div class="content"> <p class="msonormal" style="margin: 0cm 0cm 0pt"><u><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">protect.asp<?xml:namespace prefix="o" ns="urn:schemas-microsoft-com:office:office"?><p></p></span></u></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><html><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><head><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><title></span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">千花飞舞之春风精彩</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"></title><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"></head><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><body bgcolor="#00ffff"><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><form action="protect.asp" method="post"><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us">' </span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">精彩的要限制的页面</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">.<p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><input type="text" name="text"> <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us">' </span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">此处可注明该页面的其它内容</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">. <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">姓名</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">:<p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><input type="password" size="20" name="password"><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">口令</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">:<p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><input type="submit" name="b1" value="</span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">查询</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">"></p></form> <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><%set conn=server.createobject("adodb.connection") <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">conn.open "asptest" <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us">' </span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">asptest</span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">是存放客户信息的表单</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">permission</span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">所在的数据库的名字</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">. <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">sql1="select </span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt"></span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"> from permission where xm='"&&request.form("text") && "' and mima='"&&request.form ("password")&&"'" <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">set rs=conn.execute(sql1)%> <p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><% if not rs.eof then%><a href="jingcai.asp"></span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">春风精彩</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"></a><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us">' </span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">如果数据库中存在用户输入的姓名和口令</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">,</span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">则显示页面</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">jingcai.asp</span><span style="font-family: 宋体; mso-ascii-font-family: ''; mso-hansi-font-family: ''; mso-bidi-font-size: 9.0pt">的链接</span><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt">.<p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"><%end if%><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"></body></html><p></p></span></p> <p class="msonormal" style="margin: 0cm 0cm 0pt"><span lang="en-us" style="font-family: ''; mso-bidi-font-size: 9.0pt"> <p></p></span></p> <p></p> <p align="center"><b>[1]</b></p> </div> <div class="info-pre-next"> <p> 上一篇: <a href="/article/598603.html"> 如何在线更改密码? </a> </p> <p> 下一篇: <a href="/article/598605.html"> 为什么说千万别上湖北科技学院?湖北科技学院靠谱吗? </a> </p> </div> <div class="wz_tuijian"> <p> 推荐阅读 </p> <ul> <li> <a href="/article/1895349.html" target="_blank" title="如何实现某些页面只让特定的用户浏览?"> <h2> 如何实现某些页面只让特定的用户浏览? </h2> </a> </li> <li> <a href="/article/1895331.html" target="_blank" title="如何实现某一页面只让特定的用户浏览?"> <h2> 如何实现某一页面只让特定的用户浏览? </h2> </a> </li> <li> <a href="/article/598604.html" target="_blank" title="如何实现某一页面只让特定的用户浏览?"> <h2> 如何实现某一页面只让特定的用户浏览? </h2> </a> </li> <li> <a href="/article/598615.html" target="_blank" title="如何实现某些页面只让特定的用户浏览?"> <h2> 如何实现某些页面只让特定的用户浏览? </h2> </a> </li> </ul> </div> </article> </div> </main> <footer><div class="box"><div class="ft_nav"><div class="ft_about"><p>关于网站</p><ul><li><a href="/sitemap.xml" target="_blank" title="网站地图">网站地图</a></li><li><a href="/list/2/" title="最新程序员文章站">最新程序员文章站</a></li></ul></div><div class="ft_contact"><ul><li>本站所有数据收集于网络如有侵犯到您的权益,请联系我们进行下架处理。</li><li class="email_show"></li></ul></div></div><div class="copyright"><div class="cr_left"><p> 备案号:<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">粤ICP备20058927号</a></p><p>© Copyright © 2020-2022 www.superweb999.com 程序员文章站. </p></div></div></div></footer> </body> </html>