turpentyne Posted March 18, 2012 Share Posted March 18, 2012 Simple question. How do I redirect the header location on a session page. I thought I could go a different direction, but now I'm back to this one. I tried just adding header("Location: newpage.php") at the end of a query insert, but it gave me the warning that it can't modify the head. But I need the page to redirect after the query is done. Thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/259165-headers-and-session/ Share on other sites More sharing options...
litebearer Posted March 18, 2012 Share Posted March 18, 2012 sessions is not the problem. You have at some point output something prior to the header. Show us your code Quote Link to comment https://forums.phpfreaks.com/topic/259165-headers-and-session/#findComment-1328603 Share on other sites More sharing options...
turpentyne Posted March 18, 2012 Author Share Posted March 18, 2012 Ah! Duh! I thought I had, but there was a closing and opening php tag above any output html. Taking that out did it. Quote Link to comment https://forums.phpfreaks.com/topic/259165-headers-and-session/#findComment-1328613 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.