白酒品鉴专家 阿勇:留言板 密码 用户名被修改

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/07 11:58:09
恢复用户名和密码是在登录页面的数据库修改还是在另外一个页面修改
登录页面资料如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理员登录</title>
<link href="text.css" rel="stylesheet" type="text/css">
</head>

<body topmargin="0">
<!--#include file=top.asp-->
<br>
<table width="400" height="90" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="21" bgcolor="#A1E0F8">
<div align="center"><strong>  管理员登录</strong></div></td>
</tr>
<tr>
<td height="62" valign="middle" bgcolor="#E8F4F8">
<div align="center">
<form method="post" action="gb_chklogin.asp">
<p align="center"><font face="宋体"><span style="font-size: 9pt"><br>
帐号</span></font><span style="font-size: 9pt">:
<input name="username" type="text" class="editbox" size="16">
<br>
密码:
<input name="password" type="password" class="editbox" size="16">
</span></p>
  
<input name="submit" type="submit" class="button" value="= 登录 =">
</form>
</div></td>
</tr>
<tr valign="top" bgcolor="#A1E0F8"><td height="3" colspan="3"></td></tr>
</table>
<table width="400" height="73" border="0" align="center">
<tr>
<td><div align="center">
<p align="center"><span style="font-size: 9pt">
<% if request("err")=1 then%>
错误提示: <font color="#990000"><b>管理员名称不能为空!</b>
<%end if%>
</font>
<% if request("err")=2 then%>
错误提示: <font color="#990000"><b>管理员密码不能为空!</b>
<%end if%>
</font>
<% if request("err")=3 then%>
错误提示: <font color="#990000"><b>管理员密码错误!</b>
<%end if%>
</font>
<% if request("err")=4 then%>
错误提示: <font color="#990000"><b>管理员名称错误!</b>
<%end if%>
</font></span> </div></td>
</tr>
</table>
<!--#include file="foot.asp"-->
</body>
</html>
还有一个页面视图没有显示,代码如下:
<%
dim dsn
dsn="driver={microsoft access driver (*.mdb)};dbq=" & server.MapPath("lanhogb20030502.asp")
set conn=server.CreateObject("adodb.connection")
conn.Open dsn
%>
<%
const website="不便公开" '请修改为您的网站名称
const url="不便公开" '请修改为您的网址
const ver="不便公开" '程序版本名称及版本号,请勿修改、删除
%>

在数据库里可以改。
有什么不明白的联系我:QQ:86860711