Pon: php-Text erscheint im Browser

Beitrag lesen

Folgender Quelltext mit php-Formmailer:

<html>
<head>
<title>contact</title>
<style type="text/css">
html, body, textarea {

scrollbar-base-color:#FFFFFF;
  scrollbar-3d-light-color:#FFFFFF;
  scrollbar-arrow-color:#FFFFFF;
  scrollbar-darkshadow-color:#FFFFFF;
  scrollbar-face-color:#E5E5E5;
  scrollbar-highlight-color:#E5E5E5;
  scrollbar-shadow-color:#FFFFFF;
  scrollbar-track-color:#FFFFFF;
}

#p1 { padding-left: 38px; background-color:#FFFFFF; }
</style>
</head>

<body bgcolor=#FFFFFF style="margin:0px; padding:0px;">

<?php

$strEmpfaenger = 'info@example.org';

$strFrom       = '"Formmailer" info@example.org';

$strSubject    = 'neue Nachricht';

$strReturnhtml = 'http://www.example.org/thanks.html';

$strDelimiter  = ":\t";

if($_POST)
{
 $strMailtext = "";

while(list($strName,$value) = each($_POST))
 {
  if(is_array($value))
  {
   foreach($value as $value_array)
   {
    $strMailtext .= $strName.$strDelimiter.$value_array."\n";
   }
  }
  else
  {
   $strMailtext .= $strName.$strDelimiter.$value."\n";
  }
 }

if(get_magic_quotes_gpc())
 {
  $strMailtext = stripslashes($strMailtext);
 }

mail($strEmpfaenger, $strSubject, $strMailtext, "From: ".$strFrom)
  or die("Die Mail konnte nicht versendet werden.");
 header("Location: $strReturnhtml");
 exit;
}
?>

<table>
<tr>
<td>
<img src="contactfiles.jpg">
</td>
</tr>
<tr>
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
<form action="mailto:info@example.org" method="post" enctype="text/plain">

<tr>
      <td align="left"><img src="name.jpg"></td> </tr>
<tr>
      <td id="p1"><input name="name" type="text" size="26" maxlength="30"></td>
    </tr>
 <tr>
      <td align="left"><img src="mail.jpg"></td> </tr>
<tr>
      <td id="p1"><input name="mail" type="text" size="26" maxlength="40"></td>
    </tr>
<tr>
      <td align="left"><img src="phone.jpg"></td> </tr>
<tr>
      <td id="p1"> <input name="phone" type="text" size="26" maxlength="30"></td>
    </tr>
    <tr>
<td align="left"> <img src="message.jpg"> </td> </tr>
<tr>
       <td id="p1"> <textarea name="message" cols="20" rows="8"></textarea> </td>
</tr>
<tr>
      <td><input type="image" src="contact.jpg" alt="Absenden"></td>
    </tr>
</tr>
  </table>
</form>

</body>
</html>

Warum erscheint der php-formmailer im Browser als Text?

Und wie kann ich das verhindern - bin absolute Laie was php angeht - Danke

PON