Page 1 of 1

automatic re-direct

Posted: Tue Jun 29, 2004 11:32 am
by pinehead18
I'm trying to make a page redirect to another page after sitting for 5-10 seconds. How can i go aout doing that/

Thank you
Anthony

Posted: Tue Jun 29, 2004 12:00 pm
by anjanesh

Code: Select all

<META http-equiv="Refresh" content="5;url=index.php">
From:
http://www.w3.org/TR/html4/struct/globa ... http-equiv

Note. Some user agents support the use of META to refresh the current page after a specified number of seconds, with the option of replacing it by a different URI. Authors should not use this technique to forward users to different pages, as this makes the page inaccessible to some users. Instead, automatic page forwarding should be done using server-side redirects.

http://www.php.net/manual/en/function.header.php

Code: Select all

header("Location:index.php");