Jump to content

more pages


alin19

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.