Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <form method="POST" /><br/>
  2.     <input name="usuario" type="text" /><br/>
  3.     <input name="senha" type="password" /><br/>
  4.     <input type="submit" value="Enviar" /><br/>
  5. <form>
  6. <?php
  7. $user = "lucas12";
  8. $pass = "exploit";
  9.  
  10. $u = $_POST['usuario'];
  11. $p = $_POST['senha'];
  12.  
  13. if($_SERVER['REQUEST_METHOD']=='POST'){
  14.     if($u == $user && $p == $pass){
  15.         echo "Login efetuado com sucesso!";
  16. }else{
  17.         echo "Login ou senha incorreto!";
  18. }
  19. }
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement