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. 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. 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 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. 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
Archived
This topic is now archived and is closed to further replies.