jeudi 1 octobre 2020

is there a "go to" function in php [duplicate]

So I have this bit of code:

<?php
if (isset($_SESSION['userMail'])) {
    echo '<p class="login-status"> you are logged in</p>';
}
else {
    echo '<p class="login-status">You are logged out</p>';
}
?>

However instead of the echo "you are logged in" I want it to redirect me to a new site location, so not with a header function. For example you log in on testsite.com, I then want the logged in site place to be mytest.testsite.com. If you understand what i am saying




Aucun commentaire:

Enregistrer un commentaire