Witam,
Wynik z formularza kontaktowego nie zawiera tekstu wpisywanego w textarea, jest tylko " message:" i puste miejsce.
Oto skrypt:
//------------------------
$toemail = "xxx@wp.pl";
$subject = "xxx.eu";
$headers = "MIME-Version: 1.0\n"
."From: \"".$name."\" <".$email.">\n"
."Content-type: text/html; charset=iso-8859-1\n";
$body ="";
$body .= "Name:".$name."<br>\n";
$body .="Subject:".$subject."<br>\n";
$body .="Email:".$email."<br>\n";
$body .="Message:".$message."<br>\n";
if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email)) {
echo "That is not a valid email address. Please return to the" ." previous page and try again.";
}
mail($toemail, $subject, $body, $headers); echo "Thanks for submitting your comments"; ?>