dalawh Posted June 22, 2012 Share Posted June 22, 2012 I am using an if and else statement. it will display the index.php if the cookies are set and it will display the other.php if the cookies are not set. I have been using the header function to redirect. instead of using require/include to display the page. Is there a better way to redirect the pages or is the header the best way? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 22, 2012 Share Posted June 22, 2012 Sending a location header is the preferred way to redirect via PHP. Link to comment Share on other sites More sharing options...
rootKID Posted June 22, 2012 Share Posted June 22, 2012 there are also refresh as i was learned about inside these forums ... dont know if its usefull in your situation, but i would use it i think ... if not, well... use the header location as jsg told ya ... Link to comment Share on other sites More sharing options...
dalawh Posted June 22, 2012 Author Share Posted June 22, 2012 Okay. Thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now