Blogger Information
Blog 19
fans 0
comment 0
visits 13530
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
练习post传值-第九期(191118作业)
feng
Original
652 people have browsed it

第九期-(191118作业)

一、练习post传值

代码:

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>Document</title>
  9. </head>
  10. <body>
  11. <form action="" method="post">
  12. <label for="username">用户:</label>
  13. <input type="text" name="username" id="username" placeholder="请输入用户名">
  14. <label for="password">密码:</label>
  15. <input type="password" name="password" id="password" placeholder="请输入密码">
  16. <input type="submit" value="提交">
  17. </form>
  18. </body>
  19. </html>
  20. <?php
  21. print_r($_POST);
  22. echo '<hr>';
  23. echo $_POST['username'];
  24. echo '<br>';
  25. echo $_POST['password'];
  26. ?>

运行效果图

Correcting teacher:查无此人查无此人

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!