PineSmokes Posted November 22, 2015 Share Posted November 22, 2015 Trying to figure out how, when I press my logout button, do I get my page to go back to it's original page without the ?variable=something at the end: header('Location: '.$_SERVER['PHP_SELF'].'?activationsent=1'); I own this site: http://www.golden-wand.com/phpfreaks.txt Quote Link to comment Share on other sites More sharing options...
PineSmokes Posted November 22, 2015 Author Share Posted November 22, 2015 Main issue is I'm using this header page to display my login and signup with code and all so I had to change the header("Location lines from permanent to self, when they were permanent that was how I was going back to the "main" page (wiping the statement variable away). Since my new method to make it universal directs to self it always keeps those variables I used to drop which in turn leaves up messages I wish weren't there sometimes. I didn't think I had explained it properly the first time, hopefully there is enough information to find any sort of solution, thanks. Quote Link to comment Share on other sites More sharing options...
Solution PineSmokes Posted November 22, 2015 Author Solution Share Posted November 22, 2015 Does it seem like a good idea at all to place a variable on every page with the link to itself that way in the header I can use the variable I set on the page that loaded the header, I could make it a session variable even $_SESSION['url'] then call it like: header('Location: '.$_SESSION['url'].'?activationsent=1'); Seems to be working fine, guess I solved this one by myself today Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.