Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['submit'])){
  3. echo "Form was submitted" . '<br>';
  4. $username = $_POST['username'];
  5. $password = $_POST['password'];
  6.  
  7. echo "Username: " . $username . '<br>';
  8. echo "Password: " . $password . '<br>';
  9. }
  10. ?>
  11.  
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <meta charset="utf-8">
  16. <title>Test</title>
  17. </head>
  18. <body>
  19.  
  20. <form action="test.php" method="post">
  21. <input type="text" name="username">
  22. <input type="password" name="password">
  23. <input type="submit" name="submit" value="submit">
  24. </form>
  25. </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement