I send two headers as you see down and i want to take the same id in the next two pages but it couldn't work this way.
Here is my code:
if($username == $dbname && $password == $dbpass){
session_start();
$_SESSION['sess_user_id']=$dbid;
//Redirect to member
header("Location: updatename.php");
header("Location: Viewdata.php");
}
} else{
echo ' Invalid username or password.';
}
Aucun commentaire:
Enregistrer un commentaire