指引网

当前位置: 主页 > 网站运营 > 建站经验 >

asp实现会员登录验证页面图文教程

来源:网络 作者:佚名 点击: 时间:2017-07-23 00:44
[摘要] 之前我们讲过如何制作WP网站的登录功能,wp是一种PHP程序语言,今天学做网站论坛讲一下如何使用ASP语言写网站会员登录验证页面。效……

之前我们讲过如何制作WP网站的登录功能,wp是一种PHP程序语言,今天学做网站论坛讲一下如何使用ASP语言写网站会员登录验证页面。效果如下图:

dl

asp实现会员登录验证页面的要求

当用户填写用户名和密码后,需要将填写的数据与数据库中的数据进行验证,如果正确就进入后台,如果验证错误,进入错误提示页面。

 方法/步骤

  1. 制作一个登录页面,取名为password.asp。它的作用是通过FORM表单让用户去填写用户名和密码,并将以下代码粘贴到password.asp,用于提交交验证页面。
    <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
    请输入用户名和密码<form action="admin.asp" method="POST">
    <table width="450" border="0" cellspacing="0" cellpadding="8" align="center">
    <tbody>
    <tr>
    <td width="124">
    <p class="STYLE1" style="margin-top: 10px;" align="center">帐号</p>
    </td>
    <td><input class="sffocus" type="text" name="username" size="23" /></td>
    </tr>
    <tr>
    <td>
    <p class="STYLE1" style="margin-top: 10px;" align="center">密码</p>
    </td>
    <td><input class="sffocus" type="password" name="password" size="23" /></td>
    </tr>
    <tr>
    <td align="center"><input id="button" type="reset" name="button" value="重置" /></td>
    <td align="center"><input id="button2" type="submit" name="button2" value="提交" /></td>
    </tr>
    </tbody>
    </table>
    </form>
------分隔线----------------------------