Hi i need help with a very simple php script thats giving me a huge headache.
This is the script that works with my feedback form. It looks fine to me but whenever anyone types in, information and clicks send i only get the labels in the email. this is the script.
<?php
$sendTo = "myemail@blahblah.com";
$subject = "Message from mywebsite";
$headers .= "Reply-To: " . $POST["cemail"] . "\r\n";
$message .= "\r\nFrom: " . $POST["cemail"] . "\r\n";
$message .= "Name: " . $POST["cname"] . "\r\n";
$message .= "Email: " . $POST["cemail"] . "\r\n";
$message .= "Phone: " . $POST["cphone"] . "\r\n";
$message .= "Located in: " . $POST["cstate"] . "\r\n";
$message .= "Comments: " . $_POST["cmessage"] . "\r\n";
mail($sendTo, $subject, $message, $headers);
?>
my problem is that the email comes back looking like this every single time. I have all the variables in the flash movie right.
From:
Name:
Email:
Phone:
Located in:
Comments:
Can anyone help me out? thanks.
Jammy