博客列表 >html注册页面-表单

html注册页面-表单

搁浅
搁浅原创
2021年09月25日 11:02:59839浏览

注册页面

  1. <h3>用户注册</h3>
  2. <form action="login.php" method="POST" onsubmit="return false">
  3. <fieldset>
  4. <legend>每项必填</legend>
  5. <tbody>
  6. <table>
  7. <div>
  8. <label for="user">账号注册</label>
  9. <input type="text" name="username" id="user" placeholder="最少6位数" />
  10. </div>
  11. <div>
  12. <label for="psw">密码</label>
  13. <input type="password" name="psw" id="psw" placeholder="最少8位数" />
  14. </div>
  15. <div>
  16. <label for="psw2">确认密码</label>
  17. <input type="password" name="psw2" id="psw2" placeholder="最少8位数" />
  18. </div>
  19. <div>
  20. <label for="email">邮箱</label>
  21. <input type="email" name="email" id="email" placeholder="email@email.com" />
  22. </div>
  23. <div>
  24. <label>性别:</label>
  25. <select>
  26. <option value="n1"></option>
  27. <option value="n2"></option>
  28. <option value="n3">保密</option>
  29. </select>
  30. </div>
  31. <div>
  32. <label>爱好:</label>
  33. <input type="checkbox" name="aihao[]" id="lvyou" value="lvyou" />
  34. <label for="lvyou">旅游</label>
  35. <input type="checkbox" name="aihao[]" id="cang" value="cang" />
  36. <label for="cang">唱歌</label>
  37. <input type="checkbox" name="aihao[]" id="chi" value="chi" checked />
  38. <label for="chi"></label>
  39. </div>
  40. <div>
  41. <label>工作:</label>
  42. <input type="radio" name="gz" id="qd" value="qd" />
  43. <label for="qd">前端</label>
  44. <input type="radio" name="gz" id="hf" value="hf" />
  45. <label for="hf">后端</label>
  46. </div>
  47. <button>提交</button>
  48. <input type="reset" value="清空" />
  49. </table>
  50. </tbody>
  51. </fieldset>
  52. </form>
  53. <div>
  54. <label for="">搜索联想</label>
  55. <input type="search" name="search" list="data" />
  56. <datalist id="data">
  57. <option value="html">html</option>
  58. <option value="php">php</option>
  59. </datalist>
  60. </div>
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议