DamienRoche Posted September 12, 2008 Share Posted September 12, 2008 I have searched for too long now. I'm just not getting ANY answers. I know you can redirect using the header() function...but what if you want to redirect under and if statement. What about: if($var =="PLEASE REDIRECT!!!"){ header(blahblah); ////redirect dammit! } Can anything replace header() there that will actually redirect the browser? Any help is greatly appreciated. Thanks. Link to comment https://forums.phpfreaks.com/topic/123887-solved-is-it-really-that-hard-to-redirect-after-header-has-been-declared/ Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 What you've written should work. Link to comment https://forums.phpfreaks.com/topic/123887-solved-is-it-really-that-hard-to-redirect-after-header-has-been-declared/#findComment-639585 Share on other sites More sharing options...
DamienRoche Posted September 12, 2008 Author Share Posted September 12, 2008 After all that it was stupid config on my server...AGGGHHHHHH...I've been nagged by this issue for months, I ask for help and *yet again* I sort it out 5 minutes later. Thanks any way Mchl. Link to comment https://forums.phpfreaks.com/topic/123887-solved-is-it-really-that-hard-to-redirect-after-header-has-been-declared/#findComment-639588 Share on other sites More sharing options...
Mchl Posted September 12, 2008 Share Posted September 12, 2008 See. Always ask other people for opinions. Link to comment https://forums.phpfreaks.com/topic/123887-solved-is-it-really-that-hard-to-redirect-after-header-has-been-declared/#findComment-639589 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.