实例
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>3月19日作业</title> </head> <body> <form action="index.php" method="post" enctype="application/x-www-form-urlencoded"> <table border="1" bgcolor="#f9f999" cellpadding="8" cellspacing="0" align="center" width="600"> <caption><h2>用户注册</h2></caption> <tr> <td align="right">用户名:</td> <td align="left"><input type="text" name="name" id="name" size="40" placeholder="请输入用户名"></td> </tr> <tr> <td align="right">密码:</td> <td align="left"><input type="password" name="password" id="password" size="40" placeholder="请输入密码"></td> </tr> <tr> <td align="right">确认密码:</td> <td align="left"><input type="password1" name="password1" id="password1" size="40" placeholder="请输入确认密码"></td> </tr> <tr> <td align="right">头像:</td> <td align="left"> <input type="file" name="touxiang" id="touxiang"> </td> </tr> <tr> <td align="right">性别:</td> <td align="left"> <label><input type="radio" name="xingbie" value="男"> 男</label> <label><input type="radio" name="xingbie" value="女"> 女</label> </td> </tr> <tr> <td align="right">年龄:</td> <td align="left"> <select name="age" id="age"> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> </select> </td> </tr> <tr> <td align="right">兴趣爱好:</td> <td align="left"> <label><input type="checkbox" name="aihao[]" value="打篮球"> 打篮球</label> <label><input type="checkbox" name="aihao[]" value="踢足球"> 踢足球</label> <label><input type="checkbox" name="aihao[]" value="乒乓球"> 乒乓球</label> <label><input type="checkbox" name="aihao[]" value="羽毛球"> 羽毛球</label> </td> </tr> <tr> <td align="right"></td> <td align="left"> <input type="submit" name="submit" value="提交"> <input type="reset" name="reset" value="重置"> </td> </tr> </table> </form> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例