?? infoaffirm.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
//獲取客戶提交信息
String name = (String)request.getParameter("username");
String nick = (String)request.getParameter("nickname");
String sex = (String)request.getParameter("sex");
String educate = (String)request.getParameter("educate");
String birthday = (String)request.getParameter("birthday");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用戶信息確認</title>
</head>
<body>
<table width="70%" border="0" align="center" bgcolor="#00CC33">
<tr><td >
<table width="100%" border="0" align="center">
<tr>
<th colspan="2" scope="col">用戶信息填寫</th>
</tr>
<tr bgcolor="#FFFFFF">
<th width="27%" scope="row"><div align="right">用戶名:</div></th>
<td width="73%"><%=name%></td>
</tr>
<tr bgcolor="#FFFFFF">
<th scope="row"><div align="right">昵稱:</div></th>
<td><%=nick%></td>
</tr>
<tr bgcolor="#FFFFFF">
<th scope="row"><div align="right">性別:</div></th>
<td><% if(sex.equals("1")) out.print("男"); else out.print("女");%></td>
</tr>
<tr bgcolor="#FFFFFF">
<th scope="row"><div align="right">學歷:</div></th>
<td><%
int ii = Integer.parseInt(educate);
switch (ii){
case 1 :
out.print("小學");
break;
case 2 :
out.print("初中");
break;
case 3 :
out.print("高中");
break;
case 4 :
out.print("大學");
break;
}
%></td>
</tr>
<tr bgcolor="#FFFFFF">
<th scope="row"><div align="right">出生:</div></th>
<td><%=birthday%></td>
</tr>
<tr bgcolor="#FFFFFF">
<th scope="row"><div align="right"></div></th>
<td> </td>
</tr>
<tr bgcolor="#FFFFFF">
<th scope="row"><div align="right"></div></th>
<td><input type="submit" name="Submit" value="確定">
</td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -