📄 modifypass.asp
字号:
<!--#include file="conn1.asp"-->
<% pass1=request.form("p1")
pass2=request.form("p2")
username=request.form("username")
set ors=server.createobject("adodb.recordset")
str="select * from student where stuid='"&username&"' "
ors.open str,conn
if strcomp(pass1,pass2)=0 then
str="update student set pass1='"&pass1&"',pass2='"&pass2&"' where stuid='"&username&"' "
conn.execute str
%>
<body bgcolor="#E2F5E2">
<br>
<table cellpadding=0 cellspacing=0 border=0 width=95% bgcolor=#777777 align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100% height="137">
<tr align="center">
<td width="100%" bgcolor=#EEEEEE height="16">网页信息</td>
</tr>
<tr>
<td width="100%" bgcolor=#FFFFFF height="84"><b>密码更改成功,请记牢!</b><br> </td>
</tr>
<tr align="center">
<td width="100%" bgcolor=#EEEEEE height="16">
<a href="javascript:history.go(-2)"> << 返回上一页</a>
</td>
</tr>
</table> </td></tr></table>
<% else %>
<body bgcolor="#E2F5E2">
<br>
<table cellpadding=0 cellspacing=0 border=0 width=95% bgcolor=#777777 align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100% height="137">
<tr align="center">
<td width="100%" bgcolor=#EEEEEE height="16">网页信息</td>
</tr>
<tr>
<td width="100%" bgcolor=#FFFFFF height="84"><b>前后两次密码输入不一致,请重新输入密码!</b><br> </td>
</tr>
<tr align="center">
<td width="100%" bgcolor=#EEEEEE height="16">
<a href="javascript:history.go(-1)"> << 返回上一页</a>
</td>
</tr>
</table> </td></tr></table>
<% end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -