Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = _POST("username");
- $password = _POST("password");
- $un = ["eliez","greatGuy","blogger"];
- $pw = ["tr789ial","abc123","23seventeen23"]
- $count = 0;
- for($x =0; $x < 3; $x++){
- if($username == $un[x] && $password == $pw[x])
- count++;
- }
- if(count > 0){
- echo "You have sucessfully logged in!";
- }
- else
- echo "Your login failed"
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement