Timed URL Re-Direction Code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mmc01ms
Forum Commoner
Posts: 97
Joined: Wed Dec 01, 2004 3:33 am
Location: Nottingham, UK

Timed URL Re-Direction Code

Post 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?
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

Code: Select all

header( 'refresh: 5; url=foo' );
echo '<h1>You will be re-directed in 5 seconds...</h1>';
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

you can also use

Code: Select all

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