On 18 Oct 2007 in macromedia.dreamweaver.appdev, CellaMarr
wrote:
> When I fill out the form and press send the only
information that I
> receive is the "First Name", "Email Address", and
"Project Details".
> All the other info does not show up. Why will it only
send some of
> the information and not all of it? ("Phone Number",
"Profession",
> "Budget", "Hosting", and "Domain")
Because you're not telling it to send them to you. Consider:
$success = mail($to, $subject, $detail, $headers);
This line is correct and sends the email as it should. You're
telling
it that you want $detail as the body of the message. However,
when you
load variables:
$name = $_POST['name'];
$email = $_POST['email'];
$number = $_POST['number'];
$detail = $_POST['detail'];
$profession = $_POST['profession'];
$entertainer = $_POST['entertainer'];
$domain = $_POST['domain'];
$hosting = $_POST['hosting'];
$subject = 'Message from newnie.com'; // this is the subject
line. you
can make this say whatever you want
$headers = "From: $name <$email>\n";
$headers .= "Reply-To: $name <$email>\n";
$to = 'cellamarr@mac.com'; //change this to your email
you're only putting the contents of the 'detail' form field
into
$detail. You need to do something more like:
$body = 'Name: ' . $_POST['name'] . "\n";
$body .= 'EMail: ' . $_POST['email'] . "\n";
$body .= 'Number: " . $_POST['number'] "\n";
// etc
$subject = 'Message from newnie.com'; // this is the subject
line. you
can make this say whatever you want
$headers = "From: $name <$email>\n";
$headers .= "Reply-To: $name <$email>\n";
And your mail() statement becomes:
$success = mail($to, $subject, $body, $headers);
--
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php