Advertisement
Guest User

Untitled

a guest
May 30th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. HTML -seila.html
  2. <form action="senha.php" method="post">
  3. <p>Senha:<input type="pass" name="senha"></p>
  4. <p><input type="submit"></p>
  5. </form>
  6.  
  7.  
  8. PHP - senha.php
  9. <?php
  10. ob_start();
  11. $senha = 1052;
  12. if ($$senha == $_POST['password']){
  13. }
  14. else{
  15. echo "<script type='text/javascript'>);
  16. location.href='seila.html';
  17. </script>";
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement