Re: pause
| From: | Toby Butzon | Date: | Wed, 10 Jan 2001 20:43:06 +0000 |
| Subject: | Re: pause | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33773@lists.php.net to get a copy of this message | ||
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" <robert.ludvik@zd-lj.si>
To: <php-general@lists.php.net>
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:
php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
php-general-help@lists.php.net
> To contact the list administrators, e-mail:
php-list-admin@lists.php.net
>
>