📄 execute_userinfo_update.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="sql2005_book.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {color: #000000}
-->
</style>
</head>
<body>
<p align="center"><img src="xiaohui.jpg" width="167" height="110" /><img src="tupian1.jpg" width="645" height="112" /></p>
<div align="center">
<%
request.setCharacterEncoding("GBK");
String name = (String)session.getValue("Uname");
String question = request.getParameter("v_question");
String answer = request.getParameter("v_answer");
String zip = request.getParameter("v_zip");
String email = request.getParameter("v_email");
String telphone = request.getParameter("v_telephone");
String remark = request.getParameter("v_remark").trim();
if(question == ""||answer == "")
{%>
<script language="javascript">
alert("密码问题和密码答案不能为空!");
history.back(); //或者history.go(-1)
</script>
<%} else{
String sqlstr = "{call updateUserInfo(?,?,?,?,?,?,?)}";
cstmt=conn.prepareCall(sqlstr);
cstmt.setString(1,name);
cstmt.setString(2,zip);
cstmt.setString(3,email);
cstmt.setString(4,telphone);
cstmt.setString(5,question);
cstmt.setString(6,answer);
cstmt.setString(7,remark);
cstmt.executeUpdate();
cstmt.close();
conn.close();
}
%>
<script LANGUAGE="JavaScript">
alert("您的个人信息已经修改成功!")
</script>
<a href="yonghuzhujiemian.jsp" class="STYLE1">点此返回用户主界面</a>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -