c_customer_pwd_edit_ok.jsp
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html;charset=gb2312"%> 
  2. <%@include file="../include/checkadmin.jsp"%>
  3. <%@page import="java.sql.*"%>
  4. <%@include file="../include/db_conn.jsp"%>
  5. <%!String sPasswordold="";%>
  6. <%!String sPassword2="";%>
  7. <%!String sPassword3="";%>
  8. <%
  9. //sPasswordold  =request.getParameter("passwordold");
  10. sPassword2  =request.getParameter("password2").trim();
  11.   sql="UPDATE tbl_admin_user SET admin_password='"+sPassword2+"'";
  12.   sql=sql+" where admin_username='"+session.getValue("admin_username")+"'";
  13.   //out.println(sql);
  14.   smt.executeUpdate(sql);
  15.   out.println("<script language='javascript'>");
  16.   out.println("alert('密码修改成功!请用新密码重新登录!');");
  17.   out.println("location.href='exit.jsp';");
  18.   out.println("</script>");
  19. %>