Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001062

RE: [PHP-DB] delay script From: Michael Rudel (mru <email protected>)
Date: 06/29/01

Hi Jennifer,

use my function:

<?php
   // Redirects to another Page using HTTP-META Tag
   function redirect( $url, $delay = 0, $message = "" )
   {
      /* redirects to a new URL using meta tags */
      echo "<meta http-equiv='Refresh' content='".$delay."; url=".$url."'>";
      die( "<div style='font-family: Arial, Sans-serif; font-size: 12pt;' align=center> ".$message." </div>" );
   }
?>

... in your case this will be:

<?php redirect( "login.php", 5, "<B>logging out</B>" ); ?>

Hope this helps.

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -

Besuchen Sie uns am 20. und 21. August 2001 auf der
online-marketing-düsseldorf in Halle 1 Stand E 16
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:mru <email protected>
internet: http://www.suchtreffer.de
_______________________________________________________________

> -----Original Message-----
> From: Jennifer Arcino Demeterio [mailto:eper <email protected>]
> Sent: Thursday, June 28, 2001 11:31 AM
> To: php-db <email protected>
> Subject: [PHP-DB] delay script
>
>
> hello!
>
> does anyone knows how to delay a display of a certain page
> ... for example,
> if i will click on "logout" button, it will show a page which will say
> "logging out" then after 5 seconds it will redirect to the login page.
>
>
> thanks =)
>
>

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