<!--表單送出-->
<form action='__URL__/do_login' method='post' name="myForm">
<!---表單名字,程式送出給誰去處理-->
<form name="regForm" action="regok.html" method="post">
name 表單名字
action 處理表單的程式
Method 送出表單的方式
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<center>
<h1>使用者注冊</h1>
<hr>
<!---表單名字,程式送出給誰去處理-->
<form name="regForm" action="regok.html" method="post">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>使用者名:</td>
<td><input type="text" name="username"/></td>
</tr>
<tr>
<td>密碼:</td>
<td><input type="password" name="password"/></td>
</tr>
<tr>
<td>确認密碼:</td>
<td><input type="password" name="confirmpass"/></td>
</tr>
<tr>
<td>電子郵箱:</td>
<td><input type="text" name="email"/></td>
</tr>
<tr>
<td>性别:</td>
<td><input type="radio" name="gender" value="1" checked/>男
<input type="radio" name="gender" value="1"/>女</td>
</tr>
<tr>
<td>學曆:</td>
<td><select name="education">
<option value="-1" selected>請選擇</option>
<option value="0">國小</option>
<option value="1">國中</option>
<option value="2">高中</option>
<option value="3">大專</option>
<option value="4">大學</option>
<option value="5">碩士</option>
<option value="6">博士</option>
</select>
</td>
</tr>
<tr>
<td>愛好:</td>
<td><input type="checkbox" name="favorite" value="read"/>讀書</td>
<td><input type="checkbox" name="favorite" value="music"/>音樂</td>
<td><input type="checkbox" name="favorite" value="internet"/>上網</td>
<td><input type="checkbox" name="favorite" value="shopping"/>購物</td>
<td><input type="checkbox" name="favorite" value="read"/>電影</td>
<td><input type="checkbox" name="favorite" value="read"/>其他</td>
</tr>
<tr>
<td>上傳頭像</td>
<td><input="file" name="上傳檔案"/></td>
</tr>
<tr>
<td>服務協定:</td>
<td>
<textarea rows="10" cols="20">
霸王條款:
</textarea>
</td>
</tr>
<tr>
<td>是否接受:</td>
<td><input type="checkbox" name="gender" checked/>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type=submit value="注冊">
<td colspan="2" align="center"><input type=reset value="取消">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>