PhP Submitting Problem.. Please Help!

Ok the submitting form was working perfect, stil is, but i want to add in a “company” bar, here is what i did, and i get everythign in the email except comapny

<?
$to = "[email protected]";
$name = $_POST[‘name’];
$email = $_POST[‘email’];
$company = $_POST[‘company’];
$question = $_POST[‘comments’];
$subject = $_POST[‘subject’];

$message .= “name: $name - email: $email \r”;
$message .= "($comments)
";
$message .= "$question
";

$header = “from: $name ($email)”;

mail($to, $subject, $message, $header);
?>

thanks in advance!!

shouldnt you have a $message .= “$company”; somewhere in there?

yeah, you need to put

$message .= "($comments) 
";

in the message section to receive that data from the form. :slight_smile:

comments or company?

please check
http://www.php.net/manual/en/

for what ‘.=’ means.

And you did ask for $company, right?

:nerd: