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? 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 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. Link to comment https://forums.phpfreaks.com/topic/259165-headers-and-session/#findComment-1328613 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.