Re: Targeting a META HTTP-EQUIV=REFRESH
| From: | Martin Neimeier | Date: | Tue, 15 Aug 2000 19:47:44 +0000 |
| Subject: | Re: Targeting a META HTTP-EQUIV=REFRESH | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11867@lists.php.net to get a copy of this message | ||
Greg Linnell wrote:
>
> Does anyone know how to target a <META HTTP-EQUIV=REFESH>
>
> or
>
> Can anyone suggest a good HTML mailing list.
>
> Thanks for your time
>
> Greg.
>
> --
> 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
Try the function:
// redirects to a new URL using meta tags
// parameters:
// $url: URL, where to redirect
// $message: Message to display before redirection
// $delay: time to wait (in seconds) before redirect takes place
function redirect($url, $message="", $delay=0)
{
echo "<meta http-equiv='Refresh' content='$delay; url=$url'>";
if (!empty($message))
echo "<div style='font-family: Arial, Sans-serif; font-size:
12pt;' align=center>$message</div>";
die;
}
Hope this helps.
cu
Martin
--
--------------
Martin Neimeier
Tel:+49(6262)912344 Fax:+49(6262)912347