[SOLVED] automatic re-direct

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

automatic re-direct

Post 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
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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");
Post Reply