今天是PHP中文网学习第三天!做了一个网站的注册界面
代码
实例
<!DOCTYPE html> <html lang="en"> <head> <metal charset="utf-8"> <title>用户注册</title> </head> <form action=" " method="post"> <table cellspacing="1" cellpadding="8" align="center" width="450" height="550" bgcolor="#FFB6C1"> <caption><h1 align="center">世纪佳缘婚恋会员注册</h1></caption> <tr > <td align="left" label for="email">邮箱:</td> <td > <input type="text" id="email" name="email" placeholder="example@php.com"></td> </tr> <tr > <td align="left" label for="password">密码:</td> <td > <input type="text" id="password" name="password" placeholder="字母+数字不少于8位"></td> </tr> <tr > <td align="left"> 性别:</td> <td align="left"> <input type ="radio" name="sex" value="female">男 <input type="radio" name="sex" value="male">女 </td> </tr ><br> <tr align="center"> <td align="left"><label for="level">年龄:</label></td> <td align="left"> <select name="level" id="level"> <option value="">25</option> <option value="" selected="">26</option> <option value="">27</option> <option value="">28</option> </select> </td> </tr> <tr align="center"> <td align="left"><label for="level">所在地区:</label></td> <td align="left"> <select name="level" id="level"> <option value="">广东省</option> <option value="" selected="">广西省</option> <option value="">湖南省</option> <option value="">湖北省</option> </select> </td> </tr><br> <tr > <td align="left"> 婚姻状况:</td> <td align="left"> <input type ="radio" name="marriage" value="unmarried">未婚 <input type="radio" name="marriage" value=" Divorce">离婚 <input type="radio" name="marriage" value=" widowed">丧偶 </td> </tr ><br> <tr> <td align="left">兴趣:</td> <td><input type ="checkbox" name="hobby[]" value="sports">运动 <input type="checkbox" name="hobby[]" value="singing">唱歌 <input type="checkbox" name="hobby[]" value="shoppin">购物 <input type="checkbox" name="hobby[]" value="movies">看电影 </td> </tr><br> <tr > <td align="left">QQ:</td> <td > <input type="text" name="QQ" placeholder="请填写真实QQ"></td> </tr> <tr> <td >手机号码:</td> <td > <input type="text" name="cellphone number" placeholder="手机号为11位数"></td> </tr> <tr align="center"> <td align="left"><label for="photo">设置头像:</label></td> <td align="left"> <img src="../images/q.png" height="30"> <input type="file" id="" name="photo" accept="image/*"> </td> </tr> <tr align="center"> <td valign="middle" align="left"><label>介绍自己:</label></td> <td align="left"><textarea name="comment" id="comment" rows="5" cols="40" 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>
运行实例 »
点击 "运行实例" 按钮查看在线实例
手抄代码2份