|
-
Ctrl Z Ctrl Z F1 Ctrl Z Ctrl Z
PHP email Adding sections to body of email
Hi,
What I need is something that looks like this:
Feedback:
Phone Numeber:
Inside the body of the email.
I have gotten the phone number to show but how do I get the "Feedback:" section to work as well.
below is my PHP code.
Thanks,
Ponyack
PHP Code:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$feedback = $_POST['feedback'] . "\nPhone : " . $phone;
$subject = 'Mamaleh CD Contest';
$headers = "From: $name <$email>\n";
$headers .= "Reply-To: $name <$email>\n";
//ENTER YOUR EMAIL ADDRESS HERE
$to = '[email protected]';
//---------------------------
$success = mail($to, $subject, $feedback, $headers);
if($success){
echo '&sent=OK';
}else{
echo '&sent=Error';
}
?>
-
G-Mace
$feedback = "Feedback:" . $_POST['feedback'] . "\nPhone : " . $phone;
is that what your asking for?
-
Ctrl Z Ctrl Z F1 Ctrl Z Ctrl Z
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|