RE: [PHP-DB] Auto load PHP
| From: | Michael Rudel | Date: | Tue, 03 Apr 2001 13:11:49 +0000 |
| Subject: | RE: [PHP-DB] Auto load PHP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8180@lists.php.net to get a copy of this message | ||
<?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@suchtreffer.de
internet: http://www.suchtreffer.de
_______________________________________________________________
> -----Original Message-----
> From: Renze Munnik [mailto:renze@datalink.nl]
> Sent: Tuesday, April 03, 2001 9:57 AM
> To: php-db@lists.php.net
> 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:jaray@relaypoint.net]
> > Sent: Monday, April 02, 2001 6:23 PM
> > To: php-db@lists.php.net
> > 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: renze@datalink.nl
> ** M: +31 6 218 111 43
> ***************************
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>