📄 updateuser_reg.asp
字号:
<!--#include file="odbc_connection.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改登陆信息</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style5 {font-size: 12px; color: #333333; }
.style6 { font-size: 12px;color: #0099FF;}
.style8 {font-size: 12px; color: #6600FF; }
.style3 {font-size: 12px; color: #666666; }
-->
</style>
<link href="css/css2.css" rel="stylesheet" type="text/css">
<Script Language="JavaScript">
<!--
function check_Null(){
if (document.form1.psw1.value==""){
alert("对不起,你的密码不能为空!");
return false;
}
if (document.form1.psw2.value==""){
alert("对不起,请输入你的确认密码!");
return false;
}
if (document.form1.mail.value==""){
alert("对不起,你的邮箱还没有填写!");
return false;
}
return true;
}
// -->
</Script>
</head>
<body>
<%dim user
user=session("user")%>
<%dim make
make=Request.QueryString("make")
if make="update" then%>
<%psw1=request("psw1")
psw2=request("psw2")
ask=request("ask")
daan=request("daan")
mail=request("mail")%>
<%if len(trim(psw1))<6 or len(trim(psw1))>25 then%>
<table width="506" height="29" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="506" align="center" class="a1"><span class="style6"><br><br>对不起,你输入的密码格式不正确!</span> <a href="updateuser_reg.asp">返回</a></td>
</tr>
</table>
<%else%>
<%if psw1<>psw2 then%>
<table width="506" height="29" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="506" align="center" class="a1"><span class="style6"><br><br>对不起,输入两次密码不一致!</span> <a href="updateuser_reg.asp">返回</a></td>
</tr>
</table>
<%else%>
<%strsql="update login set psw1='"&psw1&"',psw2='"&psw2&"',ask='"&ask&"',daan='"&daan&"',mail='"&mail&"',log_date=#"&date()&"# where user='"&user&"'"
db.execute(strsql)%>
<table width="553" height="96" border="0" cellpadding="4" cellspacing="0">
<tr>
<td height="22" align="center"> </td>
</tr>
<tr>
<td width="545" align="center" class="style3">你的系统登录信息修改成功,请记住你的密码和帐号!</td>
</tr>
<tr>
<td height="2"></td>
</tr>
</table><br>
<%dim rsa,sqla
sqla="select * from login where user='"&user&"'"
set rsa=db.execute(sqla)%>
<table width="560" height="302" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="302" align="center" valign="top"><table width="418" height="193" border="1" cellpadding="4" cellspacing="0" bordercolor="#6699FF" style="border-collapse:collapse ">
<tr>
<td width="95" align="right" class="style8">用户名:</td>
<td width="359"><span class="style6"><%=rsa("user")%></span></td>
</tr>
<tr>
<td align="right" class="style8">密码:</td>
<td><span class="style6"><%=rsa("psw1")%></span></td>
</tr>
<tr>
<td align="right" class="style8">密码提示:</td>
<td><span class="style6"><%=rsa("ask")%></span></td>
</tr>
<tr>
<td align="right" class="style8">提示答案:</td>
<td><span class="style6"><%=rsa("daan")%></span></td>
</tr>
<tr>
<td align="right" class="style8">E-mail:</td>
<td><span class="style6"><%=rsa("mail")%></span></td>
</tr>
<tr>
<td align="right" class="style8">注册身份:</td>
<td><span class="style6"><%=rsa("body")%></span></td>
</tr>
</table></td>
</tr>
</table>
<%end if%>
<%end if%>
<%else%>
<table width="529" height="39" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" class="style8">以 下 是 你 的 系 统 登 录 信 息</td>
</tr>
</table>
<%dim rs,sql
sql="select * from login where user='"&user&"'"
set rs=db.execute(sql)%>
<table width="540" height="374" border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="536" height="374" align="left" valign="top"><form action="updateuser_reg.asp?make=update" method="post" name="form1" >
<table width="522" height="276" border="1" cellpadding="4" cellspacing="0" bordercolor="#CCCCCC" style="border-collapse:collapse ">
<tr>
<td width="75" align="right"><span class="style8">用户名:</span></td>
<td width="425"><span class="style6"><%=rs("user")%></span></td>
</tr>
<tr>
<td width="75" align="right"><span class="style8">密码:</span></td>
<td class="style5"><input name="psw1" type="password" class="style5" size="35" value="<%=rs("psw1")%>">
<span class="style6">*</span>(你的密码必须设置为6-25位,建议你不要把自己的密码输入得过于简单,以免带来安全隐患,密码可以由字母、数字、特殊符号组成)</td>
</tr>
<tr>
<td width="75" align="right"><span class="style8">确认密码:</span></td>
<td><input name="psw2" type="password" class="style5" size="35" value="<%=rs("psw2")%>">
<span class="style5"><span class="style6">*</span></span></td>
</tr>
<tr>
<td width="75" align="right"><span class="style8">密码提示:</span></td>
<td><select name="ask" class="style5" value="<%=rs("ask")%>">
<option selected>你最喜欢的动物是什么?</option>
<option>你最爱的人是谁?</option>
<option>你最好的朋友是谁?</option>
<option>你最喜欢吃的菜是什么?</option>
<option>你的中学老师是谁?</option>
<option>你最崇拜的人是谁?</option>
<option>你最难忘的事是什么?</option>
</select>
<span class="style5">(在忘记密码时可以用它来获得忘记的密码,建议大家选自己比较容易记得的事件) </span> </td>
</tr>
<tr>
<td width="75" align="right"><span class="style8">提示答案:</span></td>
<td><input name="daan" type="text" class="style5" size="15" value="<%=rs("daan")%>">
<span class="style5">(最少4个字符,由中文或者英文和数字组成,例如:我家的小狗)</span></td>
</tr>
<tr>
<td width="75" align="right"><span class="style8">E-mail:</span></td>
<td><input name="mail" type="text" class="style5" size="35" value="<%=rs("mail")%>">
<span class="style6">*</span><span class="style5">(请你务必填写好你的邮件,方便我们更好的管理,谢谢)</span></td>
</tr>
<tr>
<td width="75" align="right"><span class="style8">注册身份:</span></td>
<td><span class="style6"><%=rs("body")%></span></td>
</tr>
<tr align="center">
<td height="37" colspan="2" class="style5"><input type="submit" name="Submit" value="提 交">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
<%end if%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -