Page 1 of 1
redirect page within a given time
Posted: Thu Feb 17, 2005 2:04 am
by pleigh
hi there,
is it possible for me to redirect my page to another page let's say after 3 seconds after the current page loaded?
thanks.
pleigh
Posted: Thu Feb 17, 2005 2:12 am
by n00b Saibot
HINT: Use META-TAG
Posted: Thu Feb 17, 2005 3:35 am
by Chris Corbyn
Posted: Thu Feb 17, 2005 3:48 am
by Smackie
<meta http-equiv="refresh" content="3;url=
http://www.url.com">
to change the seconds you want it to stay at that page for enter it where the 3 is...
Posted: Thu Feb 17, 2005 4:51 am
by pleigh
thanks a lot smackie....

Posted: Thu Feb 17, 2005 8:08 am
by Smackie
no problem
Posted: Thu Feb 17, 2005 9:33 am
by s.dot
This works:
Code: Select all
sleep(3);
header("Location: page.php");
Posted: Thu Feb 17, 2005 9:35 am
by feyd
no, that doesn't. He wants to redirect after the page has loaded. Header() applies to before the page is loaded.
Posted: Thu Feb 17, 2005 10:47 pm
by pleigh
yup, i tried this code
and it worked..