c_customer_pwd_edit_ok.jsp
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html;charset=gb2312"%>
- <%@include file="../include/checkadmin.jsp"%>
- <%@page import="java.sql.*"%>
- <%@include file="../include/db_conn.jsp"%>
- <%!String sPasswordold="";%>
- <%!String sPassword2="";%>
- <%!String sPassword3="";%>
- <%
- //sPasswordold =request.getParameter("passwordold");
- sPassword2 =request.getParameter("password2").trim();
- sql="UPDATE tbl_admin_user SET admin_password='"+sPassword2+"'";
- sql=sql+" where admin_username='"+session.getValue("admin_username")+"'";
- //out.println(sql);
- smt.executeUpdate(sql);
- out.println("<script language='javascript'>");
- out.println("alert('密码修改成功!请用新密码重新登录!');");
- out.println("location.href='exit.jsp';");
- out.println("</script>");
- %>