Blogger Information
Blog 9
fans 0
comment 0
visits 3471
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1018作业——注册表单
手机用户284061708
Original
349 people have browsed it

注册表单demo


<!-- 画一个用户注册的框 -->

  1. <center >
  2. <fieldset style="width: 40%; ">
  3. <legend><H2>用户注册</H2></legend>
  4. <div class="register" style=" width:50%; " >
  5. <form action="register.php" method="post" nctype="application/x-www-form-urlencoded" target="_blank" id="register">
  6. <!-- 用户名 -->
  7. <div class="username">
  8. <label for="uname">姓名: </label>
  9. <input type="text" id="uname" name="username" placeholder="请输入用户名" maxlength="20" required ><span style="color:red" >*</span>
  10. </div>
  11. <!-- 密码 -->
  12. <div class="password">
  13. <label for="psw">密码:</label>
  14. <input type="password" id="psw" name="password" placeholder="请输入密码" min="6" max="16" required><span style="color:red" >*</span>
  15. </div>
  16. <!-- 确认密码 -->
  17. <div class="repwd"></label>
  18. <label for="repassword">确认密码:</label>
  19. <input type="password" id="repassword" name="password" placeholder="请再次输入密码" min="6" max="16" required><span style="color:red" >*</span>
  20. </div>
  21. <!-- 手机号码 -->
  22. <div class="phone"></label>
  23. <label for="phone">手机号码:
  24. <input type="number" id="phone" value="" name="phone" placeholder="请输入手机号" min="6" max="13" style="width: 165px;">
  25. </div>
  26. <!-- 出生日期 -->
  27. <div class="shengri">
  28. <label for="shengri">出生日期:</label>
  29. <input type="date" name="shengri" value="2022-10-18" id="shengri" style="width: 160px;" />
  30. </div>
  31. <!-- 邮箱 -->
  32. <div class="email">
  33. <label for="imail">邮箱:</label>
  34. <input type="email" id="email" value="" name="email" placeholder="user@email.com">
  35. </div>
  36. <!-- 性别 -->
  37. <div class="sex">
  38. <label for="secret">性别:</label>
  39. <input type="radio" name="sex" value="man" id="man"><label for="man"></label>
  40. <input type="radio" name="sex" value="women" id="women" ><label for="women"></label>
  41. <input type="radio" name="sex" value="secret" id="secret" checked><label for="secret">保密</label>
  42. </div>
  43. <!-- 个别简介 -->
  44. <div class="jianjie">
  45. <label for="jianjie">个人简介:</label>
  46. <textarea name="jianjie" id="jianjie" cols="30" rows="10"></textarea>
  47. </div>
  48. <!-- 提交 -->
  49. <button type="submit">注册</button>
  50. <button type="button">取消</button>
  51. </form>
  52. </div>
  53. </fieldset>
  54. </center>

```

实现效果如下图:

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:完成的效果不错,想一想怎么让居中更好看一下
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post