Click to See Complete Forum and Search --> : php delayed redirect ?


slim
08-21-2003, 03:59 PM
I s there any way to do a delayed redirect with php ?

I have an echo showing results from a form page and I want to use a delayed redirect after say 10 seconds can and if so how is this done thanks...

PunkSktBrdr01
08-21-2003, 04:12 PM
You cannot do this in PHP. There is a way to do this in JavaScript, but I'm not that good at JavaScript, so you should post in the JavaScript forum.

pyro
08-21-2003, 04:20 PM
You can do it with plain HTML:

<meta http_equiv="refresh" content="10;url=somepage.php">

That will forward you to somepage.php in 10 seconds.

slim
08-21-2003, 04:23 PM
thanks guys the plain ole html will do just fine...

pyro
08-21-2003, 10:32 PM
You bet... :)

theuedimaster
07-27-2005, 11:03 PM
Did you know that this is the only place on the web to find an answer to the redirect without javascript question? :) Good job Pyro!

P.S. You made a minor mistake

<meta http_equiv="refresh" content="10;url=somepage.php">

instead of an underscore you're supposed to put a dash

<meta http-equiv="refresh" content="10;url=somepage.php">