实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>用户注册</title> </head> </body> <form action="1.php" method="post"> <table border="1" align="center" width="400" cellspacing="0" cellpadding="8" bgcolor=" #888888" > <caption><h3>个人用户注册提交</h3></caption> <p> <tr> <td colspan="2"><hr></td> </tr> </p> <tr align="center"> <td align="center"><label for="user"><b>账号:</b></label></td> <td align="left"><input type="text" name="username" value="" id="user"></td> </tr> <tr align="cednter"> <td align="center"><label for="pass"><b>密码:</b></label></td> <td align="left"><input type="password" name="password" value="" id="pass"></td> </tr> <tr align="center"> <td align="center"><label for="repass"><b>确认密码:</b></label></td> <td align="left"><input type="password" name="repassword" value="" id="repass"></td> </tr> <tr align="center"> <td align="center"><label for="email"><b>邮箱</b></label> </td> <td align="left"><input type="text" name="email" id="email" value="" placeholder="example@mail.com"></td> </tr> <tr> <td align="center"><b>性别</b></td> <td align="left"><input type="radio" name="xb" value=""><b>男</b> <input type="radio" name="xb" value=""><b>女</b> <input type="radio" name="xb" value="" checked=""><b>保密</b> </td> </tr> <tr align="center"> <td align="center"><b>门槛等级</td> <td align="left"> <select name='lv'> <option value=""><b>小白</b></option> <option value=""><b>入门</b></option> <option value=""><b>进阶</b></option> <option value=""><b>大神</b></option> </select> </td> </tr><b> <tr align="center"> <td align="center"> <b>兴趣爱好</b></td> <td align="left"> <input type="checkbox" name="hobby[]"><b>运动</b> <input type="checkbox" name="hobby[]"><b>电子竞技</b> <input type="checkbox" name="hobby[]"><b>PHP</b> </td> </tr> <tr align="center"> <td align="center"><b>头像</b></td> <td align="left"> <input type="file" name="photo" accept="image/*"> </td> </tr> <tr> <td align="center" colspan="2"><b>个人简介</b></td> </tr> <tr> <td align="center"> <textarea name="grjl" rows="6" cols="12" placeholder="在此输入您的个人情况"></textarea> </td> </tr> <tr> <td colspan="2" align="center"> <hr> <input type="submit" name="submit" value="提交"> <input type="reset" name="reset" value="重置"> </td> </tr> </table> </form> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例