You can do it in PHP, HTML, or JavaScript, but it's only
possible to send the control HTTP header with PHP if there
is no body output sent yet, so PHP is out. I recommend:

<meta http-equiv="refresh" content="<time>; url=<url>">

where <time> is the time to wait before refresh in seconds
and <url> is the _complete_ url to redirect to. Note that
the time and url are both inside the content property; they
are not seperate properties and the above is not a typo.

You can also do it with JS, but AFAIK you're better off with
the above.

--Toby

----- Original Message -----
From: "Robert Ludvik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 3:18 PM
Subject: [PHP] pause


> hi
> i know i've noticed somewhere something about how to
implement a Pause in PHP -
> I mean, if ie.a user inputs a wrong number, the script
says "Oh no, it's
> wrong", waits a few seconds and redirects her back to
input form. i know i could
> say to him "hit a Back button...", just wondering if
something lika Pause
> exists. i've searched php.net and zend.com but found
nothing useful.
> thanks
> Bobe
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
> To contact the list administrators, e-mail:
[EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to