kev wood Posted June 3, 2008 Share Posted June 3, 2008 i am trying to redirect a user to another page once a counter reaches a certain number. i have used an if statement to evaluate the conditions but when the limit is reached i get these error messages. on line 230 Warning: Cannot modify header information - headers already sent by (output started at/home/acmeart/public_html/mercury/broad_send.php:20) i have set the else statement up using headers to redirect the user like this. header("location:limit.php"); is there a different way of redirecting the user. Link to comment https://forums.phpfreaks.com/topic/108501-solved-header-already-sent/ Share on other sites More sharing options...
kev wood Posted June 3, 2008 Author Share Posted June 3, 2008 i got it to work using this code echo '<META HTTP-EQUIV="Refresh" Content="0; URL=retry.php">'; it works fine. Link to comment https://forums.phpfreaks.com/topic/108501-solved-header-already-sent/#findComment-556346 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.