Guest User

Untitled

a guest
Dec 17th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>My Form</title>
  4. </head>
  5.  
  6. <body>
  7. <h1>PHP Login Form</h1>
  8. Username:<input type="text" name="username"><br>
  9. Password:<input type="password" name="password"><br>
  10. <input type="button" value="Submit">
  11. <input type="reset" value="Cancel"?>
  12. </body>
  13. </html>
  14.  
  15. <?php
  16. if (isset($_POST["username"]) && isset($_POST["password")) {
  17. $user=$_POST["username"];
  18. $pass= $_POST["password"];
  19. echo "USERNAME : $user PASSWORD: $pass";
  20. }
  21. ?>
Add Comment
Please, Sign In to add comment