mccanna Posted March 22, 2006 Share Posted March 22, 2006 Is it possible to display a php page for 3 or 4 seconds and then redirect the user back to the main menu page? If so, could you give a simple example or suggest an appropriate tutorial? Quote Link to comment Share on other sites More sharing options...
snowdog Posted March 22, 2006 Share Posted March 22, 2006 put this on the bottom of tha page you want displayed for xx seconds.$sec = 5; // number of seconds until redirect header("Refresh: $sec; url=http://www.yoururl.php");Snowdog[!--quoteo(post=357314:date=Mar 22 2006, 10:26 AM:name=AMcC)--][div class=\'quotetop\']QUOTE(AMcC @ Mar 22 2006, 10:26 AM) [snapback]357314[/snapback][/div][div class=\'quotemain\'][!--quotec--]Is it possible to display a php page for 3 or 4 seconds and then redirect the user back to the main menu page? If so, could you give a simple example or suggest an appropriate tutorial?[/quote] Quote Link to comment Share on other sites More sharing options...
mccanna Posted March 27, 2006 Author Share Posted March 27, 2006 Perfect! Thanking you![!--quoteo(post=357364:date=Mar 22 2006, 08:04 PM:name=snowdog)--][div class=\'quotetop\']QUOTE(snowdog @ Mar 22 2006, 08:04 PM) [snapback]357364[/snapback][/div][div class=\'quotemain\'][!--quotec--]put this on the bottom of tha page you want displayed for xx seconds.$sec = 5; // number of seconds until redirect header("Refresh: $sec; url=http://www.yoururl.php");Snowdog[/quote] Quote Link to comment Share on other sites More sharing options...
Seamless Posted March 27, 2006 Share Posted March 27, 2006 [!--quoteo(post=357314:date=Mar 22 2006, 10:26 AM:name=AMcC)--][div class=\'quotetop\']QUOTE(AMcC @ Mar 22 2006, 10:26 AM) [snapback]357314[/snapback][/div][div class=\'quotemain\'][!--quotec--]Is it possible to display a php page for 3 or 4 seconds and then redirect the user back to the main menu page? If so, could you give a simple example or suggest an appropriate tutorial?[/quote]Yes, you can use a meta refresh[code]<meta http-equiv="Refresh" content="3; URL=http://www.yourdomain.com/yourpage.php" >[/code]where 3 is the amount of seconds you want to display the page for.Seamlessseems like i need to refresh my page more :P Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 27, 2006 Share Posted March 27, 2006 [!--quoteo(post=358812:date=Mar 27 2006, 10:24 AM:name=AMcC)--][div class=\'quotetop\']QUOTE(AMcC @ Mar 27 2006, 10:24 AM) [snapback]358812[/snapback][/div][div class=\'quotemain\'][!--quotec--]Perfect! Thanking you![!--quoteo(post=0:date=Mar 22 2006, 08:04 PM:name=snowdog)--][div class=\'quotetop\']QUOTE(snowdog @ Mar 22 2006, 08:04 PM)[/div][div class=\'quotemain\'][!--quotec--]put this on the bottom of tha page you want displayed for xx seconds.$sec = 5; // number of seconds until redirectheader("Refresh: $sec; url=http://www.yoururl.php");Snowdog[/quote][/quote]Make sure you use the header function before the output of any text/html otherwise PHP will report back a warning error and your script wont run. 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.