Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1.   <?php
  2.                    
  3.         //Check username and password are correct. If not, display error message.
  4.                    
  5.                     if (isset($_POST['username'], $_POST['password']))  {
  6.                      $username = $_POST['username'];
  7.                      $password = $_POST['password'];
  8.                      
  9.                      if ($username == "admin" && $password == "hnd2php") {
  10.                          $_SESSION['logOn'] = true;
  11.                          header('Location: adminpanel.php');
  12.                      } else {
  13.                        
  14.                        echo"<p> ur a dumbass </p>";
  15.                    }
  16.                }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement