📄 user_info.jsp
字号:
<%@ include file="data.jsp"%>
<%@ include file="user_login.jsp"%>
<html>
<head>
<title>用户信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<link rel="stylesheet" href="css/css1.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p align="center" class="title">用户信息</p>
<p><a href="index.jsp" class="link">返回首页</a></p>
<p>
<%
String username=(String)session.getAttribute("user_name");
String sql="SELECT * FROM user_info WHERE user_name='"+username+"'";
Rst=Stmt.executeQuery(sql);
Rst.next();
String truename=Rst.getString("user_truename");
String question=Rst.getString("user_question");
String answer=Rst.getString("user_answer");
String email=Rst.getString("user_email");
String birth_y=Rst.getString("user_birth_y");
String birth_m=Rst.getString("user_birth_m");
String birth_d=Rst.getString("user_birth_d");
String phone=Rst.getString("user_phone");
String address=Rst.getString("user_address");
String zip=Rst.getString("user_zip");
//String province=Rst.getString("user_province");
//String education=Rst.getString("user_education");
String employee=Rst.getString("user_employee");
String intor=Rst.getString("user_intor");
truename=new String(truename.getBytes("GB2312"),"8859_1");
question=new String(question.getBytes("GB2312"),"8859_1");
answer=new String(answer.getBytes("GB2312"),"8859_1");
address=new String(address.getBytes("GB2312"),"8859_1");
//education=new String(education.getBytes("GB2312"),"8859_1");
//province=new String(province.getBytes("GB2312"),"8859_1");
employee=new String(employee.getBytes("GB2312"),"8859_1");
intor=new String(intor.getBytes("GB2312"),"8859_1");
%>
<p>用户ID:<%=username%></p>
<P>真实姓名:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_truename&tsize=20&tmaxlength=50" class="link"><%=truename%></a></p>
<P>密码提示问题:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_question&tsize=50&tmaxlength=100" class="link"><%=question%></a></p>
<P>答案:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_answer&tsize=50&tmaxlength=100" class="link"><%=answer%></a></p>
<P>email:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_email&tsize=20&tmaxlength=20" class="link"><%=email%></a></p>
<P>生日:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_birth_y&tsize=4&tmaxlength=4" class="link"><%=birth_y%></a>年
<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_bitrh_m&tsize=2&tmaxlength=5" class="link"><%=birth_m%></a>月
<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_birth_d&tsize=2&tmaxlength=2" class="link"><%=birth_d%></a>日</p>
<P>电话:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_phone&tsize=12&tmaxlength=12" class="link"><%=phone%></a></p>
<P>地址:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_address&tsize=50&tmaxlength=200" class="link"><%=address%></a></p>
<P>邮政编码:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_zip&tsize=6&tmaxlength=6" class="link"><%=zip%></a></p>
<P>职业:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_employee&tsize=20&tmaxlength=50" class="link"><%=employee%></a></p>
<P>介绍:<a href="user_info2.jsp?id=<%=username%>&ttype=input&column=user_intor&tsize=200&tmaxlength=200" class="link"><%=intor%></a></p>
<%
Rst.close();
Stmt.close();
Conn.close();
%>
</P>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -