Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['submit'])){
- echo "Form was submitted" . '<br>';
- $username = $_POST['username'];
- $password = $_POST['password'];
- echo "Username: " . $username . '<br>';
- echo "Password: " . $password . '<br>';
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Test</title>
- </head>
- <body>
- <form action="test.php" method="post">
- <input type="text" name="username">
- <input type="password" name="password">
- <input type="submit" name="submit" value="submit">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement