Guest User

Untitled

a guest
Jan 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['envia'])){
  4.  
  5. $user = $_POST['user'];
  6. $pass = $_POST['pass'];
  7.  
  8. $consulta = mysql_query("SELECT * FROM users WHERE user = '$user' AND pass = '$pass'");
  9. $consultando = mysql_num_rows($consulta);
  10.  
  11. if($consultando == '1'){echo "rolf, esse usuário existe amigo!";}else{
  12.  
  13. echo "eçe osoario nau existi!";
  14.  
  15. }
  16. }
  17.  
  18.  
  19. ?>
  20.  
  21. <form id="form1" action="" method="post">
  22.  
  23. <input type="text" name="user" /><input type="text" name="pass" /><input type="submit" name="envia" value="Enviar" />
  24.  
  25. </form>
Add Comment
Please, Sign In to add comment