Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. if($row['active'] == 1) {
  2.         if($row["password"] == $password){
  3.                         $_SESSION["k_username"] = $row['usuario'];
  4.             echo 'Has sido logueado correctamente '.$_SESSION['k_username'].' <p>';
  5.             echo '<a href="index.php">Index</a></p>';
  6.             //Elimina el siguiente comentario si quieres que re-dirigir automáticamente a index.php
  7.             /*Ingreso exitoso, ahora sera dirigido a la pagina principal.
  8.             <SCRIPT LANGUAGE="javascript">
  9.             location.href = "index.php";
  10.             </SCRIPT>*/
  11.                 }else{
  12.             echo 'Password incorrecto';
  13.         }
  14.                   }else{
  15.                           echo 'You account is not activaded yet'
  16.                   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement