Ok, sorry to ask such a beginner question, still learning this on my own.
On my site I have people who can login, they each can do radically different things on the website so each one has a "admin" page that is seperate from everyone else's to access the various little things they can do. I can get the header to easily redirect to a specific master page
eg:
if (isset($_COOKIE['login'])) {
header("Location:admin/master.php");
}
and it redirects just fine to the www.mydomain.com/master.php page (url is only an example, not my actual domain).
But what I am trying to do is insert the cookie value into the location line, something like this:
if (isset($COOKIE['login'])) {
header("Location:admin/master<?php echo $COOKIE['login']?>.php");
}
so it will go to a page like this:
www.mydomain.com/master"login".php (the "login" is a different word depending on the value of the 'login' cookie). I just can never remember how to splice in the cookie variable into the header location so it reads as one continous url.
I hope this makes sense. Its early 🙂