Advertisement
Hydrase

post method

Feb 5th, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Untitled Document</title>
  6. </head>
  7. <?php
  8. if(isset($_POST["submit"]))
  9. {
  10. echo "Welcome".$_POST['name']."<br>";
  11. echo "You are ".$_POST['age']."Years old";
  12. }
  13. ?>
  14. <body>
  15. <form action="<?php $_PHP_SELF?>"method="POST";>
  16. NAME:<input type="text" name="name"/>
  17. <br>
  18. AGE:<input type="text" name="age"/>
  19. <br>
  20. <input type="submit" name="submit"/>
  21. </form>
  22. </body>
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement