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. Quote Link to comment 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. Quote Link to comment 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.