jeudi 25 juin 2015

how to send data to many headers in php ? i tried but it didn't work . it's only redirecting the last header

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