Blogger Information
Blog 4
fans 0
comment 0
visits 1210
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
跟着大牛学PHP--简单制作提交按钮和后台
奔跑的金豆
Original
316 people have browsed it

一、用户注册页面

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. <h1>用户注册</h1>
  11. <form action="check.php" method="post"></form>
  12. <div>
  13. <label for="usename">用户名</label>
  14. <input type="text" id="usename" name="usename" placeholder="用户名不能为空" autofocus />
  15. </div>
  16. <div>
  17. <label for="psw">密码:</label>
  18. <input type="password" id="psw" name="password" placeholder="密码不能为空" />
  19. </div>
  20. <div>
  21. <label for="secret">性别:</label>
  22. <input type="radio" id="men" name="sex" volue="men"><label for="men"></label>
  23. <input type="radio" id="women" name="sex"
  24. volue="women"><label for="women"></label>
  25. <input type="radio" id="secret" name="sex"
  26. volue="secret" checked ><label for="secret">保密</label>
  27. </div>
  28. <div>
  29. <label for="">兴趣:</label>
  30. <input type="checkbox" id="sport" name="hobby[]" volue="sport" checked><label for="sport">运动</label>
  31. <input type="checkbox" id="music" name="hobby[]" volue="music" checked><label for="music">音乐</label>
  32. <input type="checkbox" id="game" name="hobby[]" volue="game" checked><label for="game">游戏</label>
  33. </div>
  34. <div>
  35. <label for="">学历</label>
  36. <select name="edu" id="edu">
  37. <option value="0" selected disabled>--请选择--</option>
  38. <option value="1">初中</option>
  39. <option value="2">高中</option>
  40. <option value="3">大学</option>
  41. <option value="4">其他</option>
  42. </select>
  43. </div>
  44. <!-- <button type="submit">提交</button> -->
  45. <!-- 默认就是提交类型按钮 -->
  46. <button>提交</button>
  47. </body>
  48. </html>

二、简单后台页面

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=a, initial-scale=1.0">
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. <div>
  11. <table height="100" border="2">
  12. <caption>导航栏</caption>
  13. <tr>
  14. <td>
  15. <a href="http://baidu.com" target="content">百度搜索</a>
  16. </td>
  17. </tr>
  18. <tr>
  19. <td>
  20. <a href="http://google.com" target="content">谷歌搜索</a>
  21. </td>
  22. </tr>
  23. <tr>
  24. <td>
  25. <a href="http://360.com" target="content">360搜索</a>
  26. </td>
  27. <tr>
  28. <td>
  29. <a href="http://bing.com" target="content">必应搜索</a>
  30. </td>
  31. </tr>
  32. </tr>
  33. </table>
  34. </div>
  35. <div>
  36. <iframe src="" frameborder="2" width="600" height="600" name="content"></iframe>
  37. </div>
  38. </body>
  39. </html>

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