<html>
<head>
<title>注册页面</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
</head>
<body>
<h3 align="center">注册页面</h3>
<hr size="30" color="aquamarine"/>
<form action="#" method="get">
<table border="1px" cellspacing="0px" cellpadding="10px" align="center">
<tr height="35px">
<td width="70px">用户名:</td>
<td width="200px">
<input type="text" name="uname" />
</td>
</tr>
<tr height="35px">
<td>密码</td>
<td>
<input type="password" name="pwd" />
</td>
</tr>
<tr height="35px">
<td>邮箱</td>
<td>
<input type="text" name="uemail" />
</td>
</tr>
<tr height="35px">
<td>手机号</td>
<td>
<input type="text" name="phone" />
</td>
</tr>
<tr height="35px">
<td>性别</td>
<td>
男<input type="radio" name="sex" value="1" checked="checked"/>
女<input type="radio" name="sex" value="0" />
</td>
</tr>
<tr height="35px">
<td>爱好</td>
<td>
赚钱<input type="checkbox" name="爱好" value="0"/>
养家<input type="checkbox" name="爱好" value="1"/>
谈恋爱<input type="checkbox" name="爱好" value="2"/>
</td>
</tr>
<tr height="35px">
<td>籍贯</td>
<td>
<select name="籍贯" >
<option value="中国">中国</option>
<option value="英国">英国</option>
<option value="美国" selected="selected">美国</option>
</select>
</td>
</tr>
<tr height="35px">
<td>个人介绍</td>
<td>
<textarea name="intro" rows="10" cols="30"></textarea>
</td>
</tr>
<tr height="35px" >
<td colspan="2" align="center">是否同意本公司协议:
是<input type="radio" checked="checked" name="is" value="1">
否<input type="radio" name="is" value="2"><br />
是否违法规定将自愿接受惩罚: <input type="checkbox" selected="selected" name="ii" value="1"/>
</td>
</tr>
<tr height="35px">
<td colspan="2" align="center">
<input type="submit" value="确认并注册" />
</td>
</tr>
</table>
</form>
</body>
</html>
结果:
html学习代码/注册页面.html?uname=张三&pwd=123456
&uemail=%40qq.com&phone=1111111&sex=1&爱好=0&爱好=1
&爱好=2&籍贯=美国&intro=2222&is=1&ii=1#