Page 1 of 1

Timed URL Re-Direction Code

Posted: Sat Dec 04, 2004 6:48 pm
by mmc01ms
When a user validates their account by their email i want the script they come to too forward to the index page after 5 seconds. Any idea how i could do this in php?

Posted: Sat Dec 04, 2004 6:49 pm
by rehfeld

Code: Select all

header( 'refresh: 5; url=foo' );
echo '<h1>You will be re-directed in 5 seconds...</h1>';

Posted: Sat Dec 04, 2004 8:05 pm
by qads
you can also use

Code: Select all

<meta http-equiv="Refresh" content="4;url=http://www.domain.com/link.html">