I'm not aware of being able to do it in php. Try echoing a javascript delayed redirect, that will work as its client side. Unless anyone knows if this can be done in php???
You can do it one of the following ways Use a javascript delay as mentioned above Use a meta refresh Use sleep(3); to delay the execution for 3 seconds
header('Refresh:3 ; URL=index.php'); PHP: this delay for 3 seconds.. you can print something like: print 'Redirecting...'; header('Refresh:3 ; URL=index.php'); PHP: cheers
I find the meta much better than the header method, although essentially the same <meta http-equiv="refresh" content="3;url=http://www.example.com/yourpage.php" /> HTML: which will refresh after 3 seconds. This is for those pages like the one where you log in to this forum, and it says thankyou for logging in