Hi Gero,
eine ausgabe _VOR_ dem header (Content-Type: text/html)
stattgefunden hat, allerdings ist dann das Content-Type mit auf der seite gewesen.
in meinem fall hat es geklappt, wenn ich statt des internen perl-interpreters von apache (mod_perl) den externen benutzt habe... vielleicht ist das ein ansatz, wenn auch keine lösung...der entsprechende code wäre sehr hilfreich.
#!/usr/bin/perl
$cgiurl = $domain.$ENV{'SCRIPT_NAME'};
$path_abs = "http://www.auktionentk.de";
$htmldir = "";
$path_rel = "..";
$path_graphic = "grafik";
&read;
if ($form[0] eq "send") {&thanks;}
else {&confirm;}
exit;
############
sub read {
read (STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
print $buffer;
@field = split(/&/, $buffer);
foreach $field (@field)
{
($name, $value) = split(/=/, $field);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/<!--(.\n)*-->//g;
$form[$i] = $name;
$i = $i + 1;
$form[$i] = $value;
$i = $i + 1;
}
}
############
sub confirm {
print "Content-type: text/html\n\n";
print <<EndHdr
<HTML><HEAD><TITLE>E-Mail Bestätigung</TITLE>
<link rel="stylesheet" type="text/css" HREF="http://www.auktionentk.de/styles.css">
<STYLE type="text/css">
<!--
td {font-family:Verdana,Arial;font-size:9pt;}
//-->
</STYLE></HEAD>
EndHdr
;
print <<EndHTML
<BODY bgcolor="#93B5A0">
<DIV id="confirm" style="position:absolute; left:60px; top:1px; width:500px; height:400px; z-index:2">
<FORM method="POST" action="$cgiurl">
<TABLE border="0"><TR><TD class="a" colspan="3" align="left"><b>Sind folgende Angaben korrekt?</b></TD></TR>
<TR><TD colspan="3"> </TD></TR>
EndHTML
;
$n=0;
$max=$#form;
for ($n;$n<$max;$n=$n + 2)
{
print "<TR><TD align="right" width="150" style="color:#4A4A4A;">$form[$n]:</TD><TD align="right" width="20"> </TD>\n";
if ($form[$n+1] eq "")
{
print "<TD align="left" width="300" style=color:#4A4A4A;>ohne Angabe</TD></TR>\n";
}
else
{
print "<TD align="left" width="200" style="font-weight:bold;"><nobr>$form[$n+1]</nobr></TD></TR>\n";
}
}
print <<EndHTML
<TR><TD colspan="4"> </TD></TR><TR align=right><TD><input type="submit" name="send" value="Alles klar!"></TD><TD> </TD><TD align="left"><input type="button" value="Erneute Eingabe" onClick="history.back()"></TD></TR>
EndHTML
;
print "</TABLE></FORM></DIV>";
print <<EndHTML
<DIV style="position:absolute; left:0px; top:0px; width:100%; height:400px; z-index:1;">
<TABLE border="0" cellpadding="0" cellspacing="0"><TR><TD><IMG src="$path_rel/$path_graphic/1pxT.gif" width="50" height="2"></TD><TD><IMG src="$path_rel/$path_graphic/1pxT.gif" width="160" height="350"></TD><TD><IMG src="$path_rel/$path_graphic/1pxT.gif" width="180" height="1"></TD><TD><IMG src="$path_rel/$path_graphic/1pxT.gif" width="180" height="1"></TD></TR><TR><TD><IMG src="$path_rel/$path_graphic/1pxT.gif" width="50" height="72"></TD><TD align="right" class="botl"> </TD><TD class="botm"> </TD><TD class="botr"> </TD></TR><TR><TD colspan="2" height="30"> </TD><TD id="date" valign="bottom"> <B>aktualisiert am:</B><BR> 18·August·1999</TD><TD colspan="2"> </TD></TR></TABLE><BR></DIV></BODY></HTML>
EndHTML
;
}
###############
sub thanks {
print "Content-type: text/html\n\n";
print <<EndHdr;
<HTML><HEAD><title>E-Mail Bestätigung</title>
<link rel="stylesheet" type="text/css" HREF="http://www.auktionentk.de/styles.css">
<style type="text/css">
<!--
td {font-family:Verdana,Arial;font-size:9pt;}
//-->
</style>
<script language="Javascript">
<!--
function Show(Divname)
{
if (document.all)
{
document.all[Divname].style.visibility = "visible";
a = Divname;
setTimeout ("Hide(a)",2000);
}
---cut-----
Hier ist er. Es get um &confirm.
Danke und Gruesse, Martin