Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Login Page</title>
- </head>
- <body>
- <?php
- if ( isset( $_POST['login_submit'] )
- {
- // if ( $Username == janedoe && $Password == gud_neighb0r )
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ( $username == 'janedoe' && $password == 'gud_neighb0r' )
- {
- echo 'Login was successful! Welcome, ' . $username . '!';
- }
- else
- {
- echo 'Login unsuccessful. Please retry.<br />';
- echo "<meta http-equiv='refresh' content='5; login.php' />";
- }
- }
- ?>
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
- <span style="color:#FF0099;">Username: <input type="text" name="username" size="20" /></span>
- <span style="color:#FF0099;">Password: <input type="password" name="password" size="20" /></span>
- <span style="color:#FF0099; text-align:center;"><input type="submit" name="login_submit" value="Login" size="20" /></span>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement