📄 getpwd4.asp
字号:
<!--#include file=conn.asp -->
<!--#include file="md5.asp"-->
<%
username=request("username")
passwd=md5(trim(request.form("passwd")))
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [shop_user] where username='"&username&"'"
rs.open sql,conn,1,3
If rs.eof Then
%>
<script language="javascript">
alert("这个用户还没有注册呢,请到首页注册吧!")
location.href="javascript:history.back()"
</script>
<%
else
rs("userpassword")=passwd
rs.update
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<title>取回密码</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" topmargin="11" leftmargin="0" oncontextmenu="self.event.returnValue=false">
<div align="center"><br><br>
<TABLE width=500 border=0 cellPadding=0 cellSpacing=1 bgcolor="#CCCCCC">
<TBODY>
<TR>
<TD height=25 colSpan=2 bgcolor="#FFFFFF"><FONT
color=#ff6600><B> <img src="images/o.gif" width="15" height="15">
</B></FONT>设置成功<FONT
color=#ff6600><B><strong></strong></B></FONT></TD>
</TR>
<TR>
<TD align=left vAlign=top bgcolor="#FFFFFF"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
<tr>
<td height="10"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="320" style="border-collapse: collapse" border="0">
<tr>
<td valign="top" width="324"> <div align="center">
<center>
<table border="0" cellpadding="0" width="99%" cellspacing="0" height="49">
<tr>
<td width="100%" height="1"> <p align="center">密码设置成功,返回首页<a href="index.asp">重新登录</a>!
</td>
</tr>
</table>
</center>
</div></td>
</tr>
<tr>
<td height="14" width="324"> <p align="center"><a href="javascript:window.close()" class="1">关闭窗口</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
<tr>
<td height="10"></td>
</tr>
</table></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -