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 Link to comment https://forums.phpfreaks.com/topic/95348-more-pages/ 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 Link to comment https://forums.phpfreaks.com/topic/95348-more-pages/#findComment-488346 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 Link to comment https://forums.phpfreaks.com/topic/95348-more-pages/#findComment-488353 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. Link to comment https://forums.phpfreaks.com/topic/95348-more-pages/#findComment-488355 Share on other sites More sharing options...
alin19 Posted March 10, 2008 Author Share Posted March 10, 2008 ok, 10x Link to comment https://forums.phpfreaks.com/topic/95348-more-pages/#findComment-488356 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. Link to comment https://forums.phpfreaks.com/topic/95348-more-pages/#findComment-488357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.