Hans: Formular funzt nicht

Beitrag lesen

Warum funktioniert folgendes nicht?

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

scrollbar-face-color: #FFFFFF;
  scrollbar-shadow-color: #AA0F0F;
  scrollbar-highlight-color: #AA0F0F;
  scrollbar-3dlight-color: #FFFFFF;
  scrollbar-darkshadow-color: #FFFFFF;
  scrollbar-track-color: #FFFFFF;
  scrollbar-arrow-color: #AA0F0F
}

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

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

<?php

$strEmpfaenger = 'info@xyz.de';

$strFrom       = '"Formmailer" info@xyz.de';

$strSubject    = 'neue Nachricht';

$strReturnhtml = 'http://www.xyz.de/thanks/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 border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
<form action="<?php print $_SERVER['PHP_SELF']; ?>" method="post" enctype="text/plain">

<tr>
      <td align="left">
<font face="tahoma" size="1" color="000000">Name</font></td> </tr>
<tr>
      <td id="p1"><input name="Absender" type="text" size="26" maxlength="30">
</td>
    </tr>
 <tr>
      <td align="left"><font face="tahoma" size="1" color="000000">E-Mail</font></td> </tr>
<tr>
      <td id="p1"><input name="E-Mail-Adresse" type="text" size="26" maxlength="40"></td>
    </tr>
    <tr>
<td align="left"><font face="tahoma" size="1" color="000000">Nachricht</font> </td> </tr>
<tr>
       <td id="p1"> <textarea name="Nachricht" cols="60" rows="8" wrap="virtual"></textarea> </td>
</tr>
<tr>
      <td><input type="image" src="contact.gif" alt="Absenden"></td>
    </tr>
</tr>

</table>
</form>

</body>
</html>

Danke Hans