Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Login Form</title>
- </head>
- <body>
- <h2>Login Form</h2>
- <form action="conn.php" method="post">
- <label for="username">Username:</label><br>
- <input type="text" id="username" name="username"><br>
- <label for="password">Password:</label><br>
- <input type="password" id="password" name="password"><br><br>
- <input type="submit" value="Submit">
- </form>
- </body>
- </html>
- <?php
- if ($_SERVER["REQUEST_METHOD"] == "POST") {
- $username = $_POST["username"];
- $password = $_POST["password"];
- echo "Username: " . $username . "<br>";
- echo "Password: " . $password;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement