Advertisement
gitman3

Untitled

Apr 29th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Login Form</title>
  8. </head>
  9.  
  10. <body>
  11. <h2>Login Form</h2>
  12. <form action="conn.php" method="post">
  13. <label for="username">Username:</label><br>
  14. <input type="text" id="username" name="username"><br>
  15. <label for="password">Password:</label><br>
  16. <input type="password" id="password" name="password"><br><br>
  17. <input type="submit" value="Submit">
  18. </form>
  19. </body>
  20.  
  21. </html>
  22.  
  23.  
  24. <?php
  25. if ($_SERVER["REQUEST_METHOD"] == "POST") {
  26. $username = $_POST["username"];
  27. $password = $_POST["password"];
  28. echo "Username: " . $username . "<br>";
  29. echo "Password: " . $password;
  30. }
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement