Advertisement
Guest User

Untitled

a guest
Aug 9th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. require "connessione.php";
  3. $login=false;
  4. $user=$_POST['user'];
  5. $pass=$_POST['password'];
  6. $risultato=mysql_query("select user,password from utenti where user='$user' and password='$pass'");
  7. while ($riga=mysql_fetch_array($risultato))
  8. {
  9.     //$login=true;
  10.     session_start();
  11.     $_SESSION['login']= "ok";
  12.     echo "Accesso effettuato";
  13. }
  14. if ($login==true)
  15. {
  16.     echo("Accesso Effettuato");
  17. }
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement