Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = $_POST['username'];
- $password = $_POST['password'];
- $accounts = array(
- "bolson" => "apassword",
- "seanpj" => "anotherpassword",
- "justin" => "penis",
- );
- if($username != null) {
- if($password != $accounts[$username]) {
- print "You Fail";
- }
- else {
- print "I win";
- }
- }
- ?>
- <form action="index.php" method="post">
- <input type="text" name="username"></br>
- <input type="password" name="password"></br>
- <input type="submit" value="login"></br>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement