limitphp Posted January 22, 2009 Share Posted January 22, 2009 How do you do a page redirect with php? I can't remember if it was a header(location).... I have a myaccount.php page, where if they are not logged in, I want to send them to the home page. Quote Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/ Share on other sites More sharing options...
chester Posted January 22, 2009 Share Posted January 22, 2009 I use header("Location: page.php"); but remember not to output anything before it. Quote Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/#findComment-743541 Share on other sites More sharing options...
DeanWhitehouse Posted January 22, 2009 Share Posted January 22, 2009 Or meta refresh http://www.i18nguy.com/markup/metatags.html Quote Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/#findComment-743543 Share on other sites More sharing options...
limitphp Posted January 22, 2009 Author Share Posted January 22, 2009 thanks Quote Link to comment https://forums.phpfreaks.com/topic/142003-solved-page-redirect-with-php/#findComment-743547 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.