Advertisement
Guest User

PHP problem

a guest
Sep 17th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. // yo if anyone on pastebin is reading this who can help please add me on discord and i'll love you forever
  2. // Just!n#3957
  3.  
  4. <?php
  5.   include './../config.php';
  6. echo '<form action="" method="POST">User: <input type="text" name="user" /><br />Pass: <input type="password" name="pwd" /><input type="submit" name="submit" style="display:none;"/></form>';
  7.         if(isset($_POST['submit'])){
  8.             $user = md5($_POST['user']);
  9.             $pwd = md5($_POST['pwd']);}
  10.             if($user == "$username" && $pwd == "$password"){
  11.                 echo " ";
  12.                 exit;
  13.             }
  14.            
  15.             else{
  16.                 if($user == "NULL" && $pwd == "NULL"){
  17.                 echo "Password incorrect";
  18.                 exit;
  19.             }}
  20.            
  21. ?>
  22.  
  23.  
  24. <title id="pageTitle">logs</title>
  25. <other stuff down here>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement