>
> The psuedocode snippet looks something like this (the actual listing is
> too huge)
>
> [-
> if passed data
> perform error checking
> else
> $new_entry = 1;
> -]
>
> <HTML><HEAD><TITLE></TITLE></HEAD>
> <BODY>
> [$ if( ($new_entry) || ($f->errors()) ) $]
> [+ $f->display_errors_as_html(); +]
>
> blank form stuff...
>
> [$ else $]
> [-
> use Apache;
> use Apache::Constants qw(REDIRECT);
>
> $req_rec->header_out("Location" => 'url_to_redirect_to');
> $req_rec->status(REDIRECT);
> -]
> [$ endif $]
>
> Note: The display_errors_as_html method doesn't send out any headers of
> it's own.
>
But I guess it prints to stdout. You should set optRedirectStdout (in your
server config), to let stdout go to the Embperl output stream. Otherwise
it's send directly and arrives at the browser, before Embperl sends it's
header. That's what you currently see
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------