session_start();
$_SESSION['fname']=$row['fname'];
$_SESSION['user']=$row['name'];
$_SESSION['adpoint'] = $row['adpoint'];
$_SESSION['phone']=$row['phone'];
$_SESSION['id'] = $row['id'];
$_SESSION['rememberMe'] = $_POST['rememberMe'];
// Store some data in the session
setcookie('smsapp',$_POST['rememberMe']);
echo "your name"." ".$_SESSION['user'];
Print_r ($_SESSION);
header("Location: http://www.niktrixhosting.com/login/user/index.php");
ici dans cet en-tête de code ("Location: http://www.niktrixhosting.com/login/user/index.php"); cette ligne ne la redirige paspage ne pas rediriger
mentionnez toute autre fonction pour rediriger la page.
Pourquoi utiliser Javascript quand ils peuvent corriger l'erreur? –
Alors que ce qu'il veut se passer fonctionne. même s'il fait écho ou affiche quelque chose avant de rediriger – Treby
@terby merci je cherchais alternatif à cela seulement. – nicky