php-db | 2001041
Date: 04/03/01
- Next message: Misterio X. - Anonymo: "[PHP-DB] INFORMIX INFO PROBLEM"
- Previous message: Rubanowicz, Lisa: "RE: [PHP-DB] duplicate a table"
- In reply to: Michael Rudel: "RE: [PHP-DB] Auto load PHP"
- Next in thread: Renze Munnik: "Re: [PHP-DB] Auto load PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Apr 03, 2001 at 03:11:49PM +0200, Michael Rudel wrote:
> <?php
> // Redirects to another Page using HTTP-META Tag
> function redirect( $url, $message = "", $delay = 0 )
> {
> /* redirects to a new URL using meta tags */
> echo "<meta http-equiv='Refresh' content='".$delay."; url=".$url."'>";
> if ( !empty( $message ) )
> die( "<div style='font-family: Arial, Sans-serif; font-size: 12pt;' align=center> ".$message." </div>" );
> }
> ?>
>
> Greetinx,
> Mike
>
> Michael Rudel
> - Web-Development, Systemadministration -
> _______________________________________________________________
>
> 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
> _______________________________________________________________
>
>
>
For you, the same remark I got at my first reaction....
J.R. doesn't want to redirect...
And _if_ you want to redirect from a PHP-script; why not just use
the functions that are available for such actions:
header()
Why would you want to output some HTML-code that redirects when you
can redirect right a way. And... I heard/read in the HTML-newsgroup
(quite some time ago...) that not all browsers support the refresh
meta-tag.
--* R&zE:
*************************** ** Renze Munnik ** ** E: renze <email protected> ** M: +31 6 218 111 43 ***************************
-- 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: Misterio X. - Anonymo: "[PHP-DB] INFORMIX INFO PROBLEM"
- Previous message: Rubanowicz, Lisa: "RE: [PHP-DB] duplicate a table"
- In reply to: Michael Rudel: "RE: [PHP-DB] Auto load PHP"
- Next in thread: Renze Munnik: "Re: [PHP-DB] Auto load PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

