Trying to send an email via a form post
using firebug, i could see the posted data coming across 100%..
here's the code for my php file that i'm posting the data to:
name, phone, email, company & comment all coming through the post 100% clean.. just can't seem to get the values into my variables..
doing a var_dump comes back NULL...
Code:
$email_to = "email@email.com";
$email_subject = "New Contact From **.COM";
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$company = $_POST['company'];
$comment = $_POST['comment'];
$email_message = "Form details below.\n\n";
$email_message .= "Name: ".$name."\n";
$email_message .= "Phone #: ".$phone."\n";
$email_message .= "Email: ".$email."\n";
$email_message .= "Company: ".$company."\n";
$email_message .= "Comment: ".$comment."\n";
if (mail($email_to, $email_subject, $email_message)) {
echo("<p>Message successfully sent!</p>");
}
else ("<p>Message delivery failed...</p>");