I searched for my issue and I'm sure it's been covered but I can't seem to find it.
I'm doing a login form and want to redirect the page to the username after it is validated.
Here is the code :
header('Location: profile.php?id=' .$_SESSION["username"]);
it's not working and it's appending this to the URL :
profile.php/?id=testuser
I tried escaping the ? and it did the same thing...
header('Location: profile.php\?id=' .$_SESSION["username"]);
Help please?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.