您现在的位置: 万盛学电脑网 >> 电脑基础 >> 健康知识 >> 正文

用密码验证来保护动感首页更新的实现

作者:佚名    责任编辑:admin    更新时间:2022-06-22

·以假乱真 Linux中实现Vista界面·Max粒子系统轻松实现群蝶飞舞·利用VB6.0实现五线谱作曲工具·轻松实现电脑一分为二:Betwin·用VC实现小型矢量图形系统的开发(上)·盗QQ的密码软件模拟实现(VC)·让Excel 2007实现双面打印的两种另类方·洪水攻击原理及代码实现全攻略·用ATL实现VC插件·ASP.NET系统用户权限设计与实现

下面的程序是阿喔动感管理通用程序,,非常简单不用解释了吧!

if username="admin" and password="admin" then

请记得修改两个admin分别用户名和密码!

login.ASP <HTML> <head> <title>管理者登陆</title> <link href=../../"DOWNLOAD.CSS"> </head> <body> <div><center> <table cellspacing="1"> <tr> <td> <form method="post" action="chklogin.ASP"> <table cellspacing="0" cellpadding="1" bordercolordark="#ecf5ff" bordercolorlight="#6699cc"> <tr> <td><table cellspacing="1" cellpadding="1"> <tr> <td>用户名:</td> <td><input maxlength="20" size="20"> </td> </tr> <tr> <td>密 码:</td> <td><input type="password" maxlength="16" size=& quot;20"> </td> </tr> <tr> <td colspan="2"></td> </tr> </table> </td> </tr> <tr> <td> <input type="submit" value="确 定"> &nbsp; <input type="reset" value="重 写"> </td> </tr> </table> </form> <p> </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 %>