Guest User

Untitled

a guest
Jun 2nd, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. $strUsername = "Admin";
  3. $strPassword = "password";
  4.  
  5. if (isset($_POST['username'])) {
  6. if ( ($_POST['username'] == $strUsername) && ($_POST['password'] == $strPassword) ) {
  7. echo "du har angivit rätt värden, du är nu inloggad.";
  8. } else {
  9. Header("Location: login.php");
  10. die()
  11. }
  12. }
  13. ?>
Add Comment
Please, Sign In to add comment