Hello colleagues, I need to be able to hide the information you sent by URL. I have looked for codes that help me do it but I have not had good results. The Code is:
<?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");
}
?>
What I want to hide is the redirect to header ("Location: bienvenido.php? user=". $ user) since that file sent information to it and is displayed in the URL. Any help will be useful. Regards.