首页 电脑 电脑学堂 查看内容

用密码验证来保护动感首页

2007-3-9 10:19 732 0

摘要: 下面的程序是阿喔动感管理通用程序,非常简单不用解释了吧! if username=&quo...
关键词: nbsp quot lt password username width td center response dim

下面的程序是阿喔动感管理通用程序,非常简单不用解释了吧! if username="admin" and password="admin" then 请记得修改两个admin分别用户名和密码! login.asp <html> <head> <title>管理者登陆</title> <link rel="stylesheet" href=../../"download.css"> </head> <body> <div align="center"><center> <table border="0" cellspacing="1" width="90%">   <tr>     <td> <form method="post" action="chklogin.asp">       <table width="45%" border="1" cellspacing="0" cellpadding="1" align="center"       bordercolordark="#ecf5ff" bordercolorlight="#6699cc">         <tr>           <td><table width="100%" border="0" cellspacing="1" cellpadding="1">             <tr>                        <td width="33%" align="right" height="30">用户名:</td>               <td width="67%"><input name="username" maxlength="20" class="smallinput" size="20"> </td>             </tr>             <tr>                        <td width="33%" align="right" height="30">密 码:</td>               <td width="67%"><input type="password" name="password" maxlength="16" class="smallinput"               size=& quot;20"> </td>             </tr>             <tr>               <td colspan="2" height="15"></td>             </tr>           </table>           </td>         </tr>         <tr align="center">           <td height="40">                    <input type="submit" name="submit" value="确 定" class="buttonface">                                <input type="reset" name="submit2" value="重 写" class="buttonface">                     </td>         </tr>       </table>     </form>     <p align="center"> </td>   </tr> </table> </center></div> </body> </html> __________________________________________________________________ chklogin.asp <% dim sql dim rs dim seekerrs dim founduser dim username dim companyid dim password dim errmsg dim founderr founderr=false founduser=false username=request.form("username") password=request.form("password") if username="" then    response.redirect "index.asp" end if if password="" then      response.redirect "index.asp" end if if username="admin" and password="admin" then    response.cookies("adminok")=true    response.redirect "manage.asp" else      response.redirect "index.asp" end if %>
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部