ASP编程 编程实现用户的注册与登陆(可用多个页面实现)

来源:百度知道 编辑:UC知道 时间:2024/05/09 19:29:29
要求:实现用户名和密码匹配时允许登陆,否则提示出错
要源代码!可执行的!!
可执行程序加分!!
这个是有关ADO,和Web数据库的程序

登陆页(login.html)body表单代码:
<body>
<form name="form1" method="post" action="ceklogin.asp">
用户名:<input name="username" type="text" size="6">
密码:<input type="password" name="password" size="6">
<input type="submit" name="submit" value="确定">
</form>
-----检测用户登陆信息页ceklogin.asp----
<%if trim(request("username"))<>"" and trim(request("password"))<>""then
username=trim(request("username"))
password=trim(request("password"))
elseif trim(request("username"))<>"" and trim(request("password"))=""then
response.write"<script>alert('请输入密码!');history.go(-1);</script>"
elseif trim(request("username"))="" and trim(r