代碼:
<!doctype htpl> <html> <head> <meta charset="utf-8" /> <title>注冊用戶</title> </head> <body> <table border="1px" cellpadding="10px" cellspacing="0px" style="width: 30%;margin:auto;background:rgb(195,195,195)" bordercolor="red" > <caption>注冊用戶</caption> <form action="#" method="get"> <tr> <th>用戶名:</th> <td><input type="text" name="username"></th> </tr> <tr> <th>密碼:</th> <td><input type="password" name="password"></td> </tr> <tr> <th>確認密碼:</th> <td><input type="password" name="password"></td> </tr> <tr> <th>昵稱:</th> <td><input type="text" name="username"></td> </tr> <tr> <th>郵箱:</th> <td><input type="text" name="username"></td> </tr> <tr> <th>性別:</th> <td> <input type="radio" name="gender" value="man" checked="checked">男 <input type="radio" name="gender" value="woman">女 </td> </tr> <tr> <th>愛好:</th> <td> <input type="checkbox" name="hobby" value="lq" checked="checked">籃球 <input type="checkbox" name="hobby" value="zq">足球 <input type="checkbox" name="hobby" value="pq">排球 </td> </tr> <tr> <th>城市:</th> <td> <select> <option value="shanghai">上海 <option value="beijing">北京 <option value="shenzhen">深圳 </select> </td> </tr> <tr> <th>頭像:</th> <td><input type="file" name="img"></td> </tr> <tr> <th>驗證碼:</th> <td><input type="text" name="code" id="code"/> <img id="sCodeImg" src="xcoj4rsp.bmp" onclick="return clk_image();" width="65" height="25"> <input type="button" value="換一個"> </td> </tr> <tr> <th>個人簡歷:</th> <td><textarea name="profile" rows="3" cols="30">請輸入描述信息!</textarea></td> </tr> <tr> <th colspan="2"> <input type="submit" value="提交"> <input type="reset" value="重置"> </th> </tr> </form> </table> </body> </html>