Bopo Posted April 13, 2009 Share Posted April 13, 2009 Hi Basically after a $_POST statement has been executed, I need to forward users to a specific page, the page is already using sessions therefore I can't use location, I'm looking for any method, meta refresh or whatever, I just need to re-direct to another page after the post has happened, help appreciated. Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/ Share on other sites More sharing options...
jackpf Posted April 13, 2009 Share Posted April 13, 2009 Why can't you use headers..? And yeah, like you said, meta refresh. Or javascript. Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/#findComment-808836 Share on other sites More sharing options...
Bopo Posted April 13, 2009 Author Share Posted April 13, 2009 I can't use headers because I'm already using them for verifications purposes, and the meta tags I have found only re-direct after a certain amount of time. Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/#findComment-808844 Share on other sites More sharing options...
mandred Posted April 13, 2009 Share Posted April 13, 2009 I can't use headers because I'm already using them for verifications purposes, and the meta tags I have found only re-direct after a certain amount of time. Use the header function before the headers are outputted. Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/#findComment-808846 Share on other sites More sharing options...
jackpf Posted April 13, 2009 Share Posted April 13, 2009 You can send more than one header you know. Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/#findComment-808848 Share on other sites More sharing options...
revraz Posted April 13, 2009 Share Posted April 13, 2009 You set the time to 0 or 1 second. That's the best you'll get. I can't use headers because I'm already using them for verifications purposes, and the meta tags I have found only re-direct after a certain amount of time. Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/#findComment-808850 Share on other sites More sharing options...
Bopo Posted April 13, 2009 Author Share Posted April 13, 2009 Okay well I guess there isn't, I thought of a work around so it won't be an issue now. Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/#findComment-808860 Share on other sites More sharing options...
jackpf Posted April 13, 2009 Share Posted April 13, 2009 I still don't understand why you can't user headers. :-\ Link to comment https://forums.phpfreaks.com/topic/153895-solved-sending-user-to-different-page-without-using-header/#findComment-808879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.