?? repws.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
'/*----------------------------------------------
'項目名: 東區(qū)網(wǎng)上書店(ASP課程設計)
'開始日期: 2003年12月18日18:00
'完成日期: 2003年12月27日53:00
'最后修改: -
'制作地點: 科干東區(qū)宿舍
'程序制作: 陳文杰
'聯(lián)系方式: QQ:168909
'
'
' Email:Cwj@edu.21cn.com
'
' *未經(jīng)同意本程序不得使用!*
'
' 請尊重他人勞動成果,保留上面信息!
'-----------------------------------------------*/
%><!--#include file="manage/inc/config.asp"-->
<!--#include file="inc/conn.asp"-->
<%
if request("username")="" then
call MsgBox("非法使用!","Back","None")
response.end
end if
dim tmp
set rs=server.CreateObject("adodb.recordset")
'提交修改密碼
if not isempty(request("SubmitRePws")) then
if request("password")<>request("password2") then call MsgBox("再次輸入密碼不一致!","Back","None")
rs.open "select password from [user] where username='"&trim(request("username"))&"'",conn,1,3
rs("password")=md5(trim(request("password2")))
rs.update
rs.close
call MsgBox("您的密碼取回成功,請登錄!","GoUrl","login.asp")
response.end
end if
rs.open "select answer from [user] where username='"&trim(request("username"))&"' ",conn,1,1
tmp=trim(rs("answer"))
rs.close
if tmp<>md5(request("answer")) then
call Msgbox("對不起,您輸入的問題答案不正確","Back","None")
response.end
end if
set rs=nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>東區(qū)網(wǎng)上書店</title>
<link href="style.css" rel="stylesheet" type="text/css">
</style>
<!-- European format dd-mm-yyyy -->
<script language="JavaScript" src="calendar.js"></script>
</head>
<body>
<!--#include file="head.htm"-->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="300" align="left" valign="top">
<br> <br> <br> <FORM name=frmdata method=post action="">
<table border=0 align="center" cellpadding=0 cellspacing=5>
<tbody>
<tr align="left">
<td colspan="2"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/w.gif"></td>
<td style="color:#415373">取回密碼</td>
</tr>
</table>
<br></td>
</tr>
<tr>
<td width="108" align=right>請輸入新密碼:</td>
<td width="276" align=left><input type="password" name="password">
</td>
</tr>
<tr>
<td align=right>請確認新密碼:</td>
<td align=left><input type="password" name="password2">
</td>
</tr>
<tr>
<td colspan="2" align=center><input name="SubmitRePws" type="submit" id="Submit" value="提交">
<input name="username" type="hidden" id="username" value="<%=request("username")%>">
</td>
</tr>
</table>
<br>
<br>
</FORM>
</td>
</tr>
</table>
<!--#include file="foot.htm"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -