change_grxx.jsp~3~
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ page import="java.sql.*" %>
- <%@ page language="java" %>
- <%@ page import="java.util.*" %>
- <%@ page import="proj112.*" %>
- <jsp:useBean id="a" scope="page" class="proj112.dbconn"/>
- <html>
- <head>
- <title>
- change_xueji
- </title>
- </head>
- <body bgcolor="#ffffff">
- <% request.setCharacterEncoding("GBK");
- String sql="";
- String xuehao=(String)session.getAttribute("id");
- String cym=request.getParameter("zym");
- String sfz=request.getParameter("sfz");
- String csrq=request.getParameter("csrq");
- String jg=request.getParameter("jg");
- String jkzk=request.getParameter("jkzk");
- String rxnf=request.getParameter("rxdate");
- String jtdz=request.getParameter("jtdz");
- String jtdh=request.getParameter("jtdh");
- String yzbm=request.getParameter("yzbm");
- String brlxfs=request.getParameter("brlxfs");
- String email=request.getParameter("email");
- String qtlxfs=request.getParameter("qtlxfs");
- String bz=request.getParameter("bz");
- sql="update student set cym='"+cym+"',sfz='"+sfz+"', csrq='"+csrq+"',jg='"+jg+"',jkzk='"+jkzk+"',rxnf='"+rxnf+"',jtdz='"+jtdz+"',jtdh='"+jtdh+"',yzbm='"+yzbm+"',brlxfs='"+brlxfs+"',email='"+email+"',qtlxfs='"+qtlxfs+"',bz='"+bz+"' where stu_id='"+xuehao+"'" ;
- a.executeUpdate(sql);
- response.sendRedirect("grxx.jsp") ;
- %>
- </body>
- </html>