⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chg_password.asp

📁 毕业生信息管理系统,做毕业设计也许会有用的
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="md5.asp"-->
<!--#include file="top.asp"-->
<div align=center>
<%
  if Session("user")="" then
   Response.Write("对不起,您没有权限查看此页,请")
%>
  <a href="admin_login.asp">登录</a>
<%
   Response.Write("后查看")
%>
<p>
<!--#include file="down.asp"-->
<%
   Response.End
  end if
%>
</div>
<%
  ch_pw=md5(Request.form("chg_password"),16)
%>
<%
   ch_num=Session("ch_num")
%>
<%
  cs="Select * from login where usernum='"+ch_num+"'"
  set rs=Server.CreateObject("Adodb.Recordset")
  rs.open cs,conn,1,3
%>
<%
  if not (rs.eof or rs.bof) then%><%
  rs("userpassword")=ch_pw
  rs.update
  rs.close
  set rs=nothing
  conn.close
  set conn=nothing
%>
<%end if%>
<%Response.Write("密码修改成功!")%><!--#include file="down.asp"-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -