Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("obtenerdatos.php");
- $user=$_POST['usuario'];
- $pass=$_POST['contrasena'];
- $ok = 0;
- $objeto = new SQLConector;
- $lista = $objeto->MostrarUsuario();
- for($i =0; $i<count($lista); $i++){
- if($user==$lista[$i]['usuario'] and $pass==$lista[$i]['password']){
- $ok=1;
- header("Location:bienvenido.php?user=".$user);
- }
- }
- if ($ok==0){
- header("Location:invalido.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement