Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?php
- ini_set('display_errors','On');
- error_reporting(E_ALL);
- if ($_POST)
- {
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($username == 'tommycostello' && $password == 'jebisamess') {
- echo 'Your username: ' . $username . '<br />';
- echo 'Your password: ' . $password . '<br /><br />';
- }
- else {
- echo 'Not the right username/password. <br /> <br />';
- }
- }
- ?>
- <html>
- <body>
- <form action="" method="POST">
- Username: <input type="text" name="username"><br /><br />
- Password: <input type="password" name="password"><br/><br />
- <input type="submit" value="Login!"><br /><br />
- </form>
- </body>
- </html
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement