<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form action="b.jsp" method="post"> <table border="0" cellpadding="0" cellspacing="0" align="center" width="750"> <tr> <td height="100" colspan="2"><img src="top.jpg"></td> </tr> <tr> <td heigth="30" width="120">用户名:</td> <td width="500"><input name="user" type="text" maxlength="16">只能输入字母或数字,4-16个字符</td> </tr> <tr> <td height="30" width="120">密码:</td> <td width="500"><input name="pwd" type="password" maxlength="12">密码长度6-12位</td> </tr> <tr> <td height="30" weight="120">确认密码:</td> <td width="500" ><input name="rpwd" type="password"></td> </tr> <tr> <td height="30" weight="120">性别:</td> <td width="500"> <input name="sex" type="radio" value="男">男 <input nane="sex" type="radio" value="女">女</td> </tr> <tr> <td height="30" weight="120">电子邮件地址:</td> <td width="500"><input name="email" type="text">输入正确的Email地址</td> </tr> <tr> <td height="30" weight="120">出生日期:</td> <td width="500"> <input name="year" id="year" size="4" maxlength="4"> 年 <select name="month"> <option value=1>1</option> <option value=2>2</option> <option value=3>3</option> <option value=4>4</option> <option value=5>5</option> <option value=6>6</option> <option value=7>7</option> <option value=8>8</option> <option value=9>9</option> <option value=10>10</option> <option value=11>11</option> <option value=12>12</option> </select> 月 <select name="day"> <option value=1>1</option><option value=2>2</option><option value=3>3</option><option value=4>4</option><option value=5>5</option> <option value=6>6</option><option value=7>7</option><option value=8>8</option><option value=9>9</option><option value=10>10</option> <option value=11>11</option><option value=12>12</option><option value=13>13</option><option value=14>14</option><option value=15>15</option> <option value=16>16</option><option value=17>17</option><option value=18>18</option><option value=19>19</option><option value=20>20</option> <option value=21>21</option><option value=22>22</option><option value=23>23</option><option value=24>24</option><option value=25>25</option> <option value=26>26</option><option value=27>27</option><option value=28>28</option><option value=29>29</option><option value=30>30</option> <option value=31>31</option> </select> 日 </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="同意以下协议条款并提交"> </td> </tr> <tr> <td colspan="2"> <textarea rows="" cols="" readonly="readonly" style="500px;height:90px;font-size:10px;color:#000000"> 一、总则 1.1 用户应当同意本协议的条款并按照页面上的提示完成全部的注册程序。用户在进行注册程序过程中点击"同意"按钮即表示用户与百度公司达成协议,完全接受本协议项下的全部条款。 1.2 用户注册成功后,百度将给予每个用户一个用户帐号及相应的密码,该用户帐号和密码由用户负责保管;用户应当对以其用户帐号进行的所有活动和事件负法律责任。 1.3 用户可以使用百度各个频道单项服务,当用户使用百度各单项服务时,用户的使用行为视为其对该单项服务的服务条款以及百度在该单项服务中发出的各类公告的同意。 1.4 百度会员服务协议以及各个频道单项服务条款和公告可由百度公司随时更新,且无需另行通知。您在使用相关服务时,应关注并遵守其所适用的相关条款。 您在使用百度提供的各项服务之前,应仔细阅读本服务协议。如您不同意本服务协议及/或随时对其的修改,您可以主动取消百度提供的服务;您一旦使用百度服务,即视为您已了解并完全同意本服务协议各项内容,包括百度对服务协议随时所做的任何修改,并成为百度用户。 </textarea> </td> </tr> </table> </body> </html>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <% request.setCharacterEncoding("utf-8"); String user=request.getParameter("user"); String pwd=request.getParameter("pwd"); String rpwd=request.getParameter("rpwd"); String sex=request.getParameter("sex"); String email=request.getParameter("email"); String year=request.getParameter("year"); String month=request.getParameter("month"); String day=request.getParameter("day"); %> 用户名:<%=user%><br> 密码:<%=pwd%><br> 确认密码:<%=rpwd%><br> 性别:<%=sex%><br> 电子邮件:<%=email%><br> 出生日期:<%=year%>年<%=month%>月<%=day%>日 </body> </html>