Re: [PHP] Targeting a META HTTP-EQUIV=REFRESH From: Martin Neimeier (nei <email protected>)
Date: 08/15/00

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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>

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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>