alin19 Posted March 10, 2008 Share Posted March 10, 2008 i have 3 pages: first with a form and when the buton is pressed to button to go to the second page second page to be shown only 10 seconds the second page and then go automaticly to the third, from the first to the second i know how to do, but i don't know how to pass to the third Quote Link to comment Share on other sites More sharing options...
Perad Posted March 10, 2008 Share Posted March 10, 2008 The meta refresh tag would best suit your needs here. http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm Quote Link to comment Share on other sites More sharing options...
alin19 Posted March 10, 2008 Author Share Posted March 10, 2008 but i not exactly what i need. i need something like this: first page----execute --------------------secont page(wait 3 seconds)-----------------------third page Quote Link to comment Share on other sites More sharing options...
Perad Posted March 10, 2008 Share Posted March 10, 2008 Surely on page 2 you can have the following. <meta http-equiv="refresh" content="3;url=http://root/index.php?page=3"> This will then flash up page 2 for 3 seconds then pass the user onto page 3. PHP executes the script. It is not a persistent connection which can count time. You can use this or javascript. Quote Link to comment Share on other sites More sharing options...
alin19 Posted March 10, 2008 Author Share Posted March 10, 2008 ok, 10x Quote Link to comment Share on other sites More sharing options...
haku Posted March 10, 2008 Share Posted March 10, 2008 I personally prefer this method: header("Refresh: 3; url=page3.php"); // waits 3 seconds & sends to page3.php You have to put this in your php script before any output to the browser. It will automatically forward the page in 3 seconds and cannot be disabled. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.