I am creating a form in FlashMX, that calls to a php document.
My question is, I want to add multiple fields to the '$message' area, but don't know the correct syntax for adding it. Here is my code:
<?
/ subject /
$subject = "Web form from Distributors";
/ additional header pieces for errors, From cc's, bcc's, etc /
$headers = "From: $name <$email>\n";
$headers .= "X-Sender: <$email>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: $name <$email>\n"; // Return path for errors
/ recipients /
$recipient = "my@email.com";
/ message /
$message = $name;
/ and now mail it /
mail($recipient, $subject, $message, $headers);
?>
What I want to do is add to:
$message = $name;
to add more fields to the message area, such as $title, $company, etc.
What is the proper syntax for adding these?
Thanks in advance.