Redirect
Posted: Fri Jul 28, 2006 6:50 am
I want to appologise in advance if this has already been asked, I had a quick search but couldn't find what I was after.
What I'm trying to do is redirect a user on a page to another page automatically, AFTER the MYSQL queries on the page have been executed, similar to - when you login on a forum, it says "thank you for logging in, click here if you are not automatically redirected" etc...
I can't use the following code as the headers have already been sent before my sql code has been run.
Any help would be great!
Thanks
What I'm trying to do is redirect a user on a page to another page automatically, AFTER the MYSQL queries on the page have been executed, similar to - when you login on a forum, it says "thank you for logging in, click here if you are not automatically redirected" etc...
I can't use the following code as the headers have already been sent before my sql code has been run.
Code: Select all
<?php
header('Location: http://www.blah.com/blah.php');
?>Thanks