i understand how to redirect the location for people using header() but what i'm not too sure of, is....
is there a way i can set it to do this after 5, 10, 15...x number of seconds? I imagine there's a way to do it....
Printable View
i understand how to redirect the location for people using header() but what i'm not too sure of, is....
is there a way i can set it to do this after 5, 10, 15...x number of seconds? I imagine there's a way to do it....
If you want a delay, it'd be better to use a META refresh tag.
It sounds like you want to show a message and have it redirect after a few seconds. However, this wont work since you can't use header() after output has been sent to the browser.
Something like:
<meta http-equiv="refresh" content="5;URL=http://www.google.com">