实例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>用户注册</title> </head> <body> <form action="" method="POST"> <table border="0" cellspacing="0" cellpadding="8" bgcolor="#FFFFF0"> <tr bgcolor="black"> <td width="500" height="30" bgcolor="black" ><font color="lightgray">注册用户</font></td> <td width="50"><font size="2" color="lightgray">首页</font></td> <td width="75"><font size="2" color="lightgray">关于我们</font></td> <td width="75"><font size="2" color="lightgray">联系我们</font></td> <td width="50"><font size="2" color="lightgray">登录</font></td> </tr> <tr><td></td></tr> <tr><td></td></tr> <tr> <td><label for="name"><b><font size=3>用户名:</font></b></label></td> </tr> <tr> <td><input type="text" name="name" id="name" value="" height="50" placeholder="UserName" size="60"></td> </tr> <tr> <td><label for="password"><b>密码:</b></label></td> </tr> <tr> <td align="left"><input type="text" id="password" name="password" value="" size="60"></td> </tr> <tr> <td><label for="Email"><b>邮箱:</b></label></td> </tr> <tr> <td align="left"><input type="text" id="Email" name="Email" value="" placeholder="example@mail.com" size="60"></td> </tr> <tr> <td align="left"><b>性别:</b></td> </tr> <tr> <td align="left"> <input type="radio" name="sex" value="male">男 <input type="radio" name="sex" value="female">女 <input type="radio" name="sex" value="secret" checked="">保密 </td> </tr> <tr> <td align="left">注册本站用户的目的</td> </tr> <tr> <td align="left"> <input type="checkbox" name="happy[]" value="html">学习HTML </td> </tr> <tr> <td> <input type="checkbox" name="happy[]" value="css">学习CSS </td> </tr> <tr> <td> <input type="checkbox" name="happy[]" value="javascript">学习JavaScript </td> </tr> <tr> <td> <input type="checkbox" name="happy[]" value="php" checked="">学习PHP </td> </tr> <tr> <td align="left"><label for="level"><b>你是通过什么方式得知本站?</b></label></td> </tr> <tr> <td align="left"> <select name="level" id="level"> <option value="">朋友介绍</option> <option value="" selected="">搜索引擎</option> <option value="">论坛</option> </select> </td> </tr> <tr align="left"> <td align="left"><label for="photo"><b>上传头像:</b></label></td> </tr> <tr> <td align="left"> <img src="../images/13.png" height="30"> <input type="file" id="" name="photo" accept="image/*"> </td> </tr> <tr align="left"> <td valign="middle" align="left"><label><b>个人简介:</b></label></td> </tr> <tr> <td align="left"><textarea name="comment" id="comment" rows="5" cols="40" placeholder="请介绍你自己"></textarea></td> </tr> <tr> <td colspan="2" align="left"> <hr> <input type="submit" name="submit" value="注册" bgcolor="blue"> </td> </tr> </table> </form> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例