Guest User

php

a guest
Jul 2nd, 2018
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. $user = $_POST['user'];
  3. $pass = $_POST['pass'];
  4.  
  5. if($user == "admin"
  6. && $pass == "admin")
  7. {
  8. include("secure.html");
  9. }
  10. else
  11. {
  12. if(isset($_POST))
  13. {?>
  14.  
  15. <form method="POST" action="secure.php">
  16. User <input type="text" name="user"></input><br/>
  17. Pass <input type="password" name="pass"></input><br/>
  18. <input type="submit" name="submit" value="Go"></input>
  19. </form>
  20. <?}
  21. }
  22. ?>
Add Comment
Please, Sign In to add comment