Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $users = [
- "1" => "1",
- "john" => "pass1",
- "bon" => "pass2",
- "gon" => "pass3"
- ];
- if (isset($_POST['submit'])) {
- $username = $_POST['username'];
- $password = $_POST['password'];
- foreach ($users as $val => $key) {
- if($username == $val && $password == $key) {
- print 'hi';
- } else {
- print 'fuck off';
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement