<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>用户注册表单</title> </head> <body> <form method="post" action="reg.php"> 用户注册:<input type="text" name="username" maxlength="8" placeholder="请输入用户名"required>*<br> 密码:<input type="password" name="password" maxlength="16" placeholder="请输入密码"required>*<br> 重复密码: <input type="password" name="pwd" maxlength="16" placeholder="请重复输入密码"required>*<br> Email:<input type="email" name="email" maxlength="20" placeholder="请输入E-mail"required>*<br> 性别:<input type="radio" name="sex" value="man">男 <input type="radio" name="sex" value="women">女 <input type="radio" name="sex" value="baomi" checked="checked">保密<br> 年龄: <input type="number" name="age" min="17" max="70"required><br> 出生日期:<input type="date" name="date"><br> 兴趣爱好: 看电影<input type="checkbox" name="xingqu" value="lookmov"> 运动 <input type="checkbox" name="xingqu" value="sport"><br> 选择一个头像: <select name="headimages" id="headimages" style="width: 50px;height:20px"> <option value="img01"><img src="images/img01.gif" alt="img01"></option> <option value="img02"><img src="images/img02.gif" alt="img02"></option> </select><br> 输入个人简介: <textarea name="jianjie" id="jianjie" cols="10" rows="5" maxlength="30"></textarea> <p>*必须填写内容</p> <input type="submit" name="button" value="提交" /> <input type="reset" name="button" value="重置" /> </form> </body> </html>