Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>My Form</title>
- </head>
- <body>
- <h1>PHP Login Form</h1>
- Username:<input type="text" name="username"><br>
- Password:<input type="password" name="password"><br>
- <input type="button" value="Submit">
- <input type="reset" value="Cancel"?>
- </body>
- </html>
- <?php
- if (isset($_POST["username"]) && isset($_POST["password")) {
- $user=$_POST["username"];
- $pass= $_POST["password"];
- echo "USERNAME : $user PASSWORD: $pass";
- }
- ?>
Add Comment
Please, Sign In to add comment