<?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:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________



> -----Original Message-----
> From: Renze Munnik [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 03, 2001 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-DB] Auto load PHP
>
>
> David Balatero wrote:
> >
> > Maybe after the UPDATE statement, you could do:
> >
> > <?php
> > header("Location: /path/to/other/script.php");
> > ?>
> >
> > ...but I don't know, I don't use header() that much.
> >
> > -- David Balatero
> >
> > -----Original Message-----
> > From: Jim Ray [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 02, 2001 6:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-DB] Auto load PHP
> >
> > Is there a way, once updating a table to load another PHP?
> After, I have the
> > user click on the save button, the code calls a update
> routine. After the
> > UPDATE is done, I want the code to call another progam.
> >
> > Thank you.
> >
> > Jim
>
>
> Yep... the header-function should work. There's only one nasty
> restriction... You can only use the header-function BEFORE ANY OTHER
> OUTPUT HAS BEEN GENERATED.
> --
>
> * R&zE:
>
> ***************************
> **  Renze Munnik
> **
> **  E: [EMAIL PROTECTED]
> **  M: +31 6 218 111 43
> ***************************
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to