php-db | 2001062
Date: 06/29/01
- Next message: Miles Thompson: "Re: [PHP-DB] how to preseve value of radio-butons when form is refreshed?"
- Previous message: Artur Correia: "[PHP-DB] Formatting Strings in MySQL"
- In reply to: Michael Rudel: "RE: [PHP-DB] delay script"
- Next in thread: Attila Strauss: "Re: [PHP-DB] delay script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Or you could do:
<?
sleep(10); // do nothing for 10 seconds
header("Location: $url");
?>
Then you don't have to hope that the client's browser supports an html
meta tag for refresh.
-- Allen Lee http://MissoulaWeb.com Hosting, Programming and DesignOn Fri, 29 Jun 2001, Michael Rudel wrote:
> 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>
- Next message: Miles Thompson: "Re: [PHP-DB] how to preseve value of radio-butons when form is refreshed?"
- Previous message: Artur Correia: "[PHP-DB] Formatting Strings in MySQL"
- In reply to: Michael Rudel: "RE: [PHP-DB] delay script"
- Next in thread: Attila Strauss: "Re: [PHP-DB] delay script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

