A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: PHP email Adding sections to body of email

  1. #1
    Ctrl Z Ctrl Z F1 Ctrl Z Ctrl Z PONYACK's Avatar
    Join Date
    Nov 2005
    Location
    North Carolina
    Posts
    202

    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';
    }
    ?>

  2. #2
    G-Mace cougrhky20's Avatar
    Join Date
    Aug 2001
    Location
    Northern Virginia
    Posts
    156
    $feedback = "Feedback:" . $_POST['feedback'] . "\nPhone : " . $phone;

    is that what your asking for?

  3. #3
    Ctrl Z Ctrl Z F1 Ctrl Z Ctrl Z PONYACK's Avatar
    Join Date
    Nov 2005
    Location
    North Carolina
    Posts
    202

    Yes Yes

    Thats it.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center