seco Posted January 10, 2008 Share Posted January 10, 2008 Hi i try the function header('Location: /failed.php'); it gives me this warning Warning: Cannot modify header information - headers already sent by .... any help? thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/85406-cant-redirect-to-a-page-using-header/ Share on other sites More sharing options...
Ken2k7 Posted January 10, 2008 Share Posted January 10, 2008 Can you post your entire code? I'm also not sure if /failed.php is a correct location. Quote Link to comment https://forums.phpfreaks.com/topic/85406-cant-redirect-to-a-page-using-header/#findComment-435755 Share on other sites More sharing options...
revraz Posted January 10, 2008 Share Posted January 10, 2008 Remove the / but even still, it won't load with that error. Stickies are your friend. http://www.phpfreaks.com/forums/index.php/topic,37442.0.html Quote Link to comment https://forums.phpfreaks.com/topic/85406-cant-redirect-to-a-page-using-header/#findComment-435759 Share on other sites More sharing options...
nikefido Posted January 10, 2008 Share Posted January 10, 2008 you can't use that to redirect if ANY html is present BEFORE the header redirect statement. Quote Link to comment https://forums.phpfreaks.com/topic/85406-cant-redirect-to-a-page-using-header/#findComment-435760 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.