Hello,
I’m trying to pass parameters from one page to the other.
I built an if statement in the statement I check if a session exists in case it exists I try to redirect the user to a different page.
I have on the new page a “div” that I would like to input a message once the user is redirected.
I am struggling with this code.
The code I have so far is:
if( isset($_SESSION['name']) || isset($_COOKIE['email'])){
$Nav_bar_message = 'Eli is king';
header('location: Home_Page.php?Nav_bar_message');
}
Here is the code on the second page with the div:
<div>
<p><?= $Nav_bar_message ;?> </p>
</div>
Thank you for your help.