perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Emperl refresh
Date Wed, 11 Sep 2002 04:22:54 GMT
>Is there a way to redirect a page with embperl, similar html meta tag
refresh
>method (<meta http-equiv="refresh" content="0; URL=index.htm
>target=MSGemail">).
>
>PHP has the following method:
><?php
>$redirectionvar = "index.php";
>header("Location: $redirectionvar");
>?>
>
>Is there a serverside way to do this in embperl?

There are sveral ways. The easiest is

[-
$http_headers_out{'Location'} = $redirectionvar ;
-]

You may add a exit is this is not the last statement on the page

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message