I’m having a bit of trouble with the tutorial Flash-Based Email Form Using PHP by senocular.
Almost everything works OK, i can get the form to send email OK, but IF the user of the form presses ENTER in the body (“message”) input box, then i don’t get any of the text entered after that in my email…
eg.
IF the User types in the “message” field
Hello,
I need something. Please, it would be nice.
Signed
Mr. User
I get in my email
Hello,
And that’s all.
The code i am using follows.
<?php
$sendTo = "alex@phonicpod.com";
$subject = "Phonicpod.com Work Enquiry";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
I’ve also tried using the exact source from the tutorial, but that has the same results. Is it something to do with my server or is this a bug in the code?
Thanks.