A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: PHP question.. way over my head here

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    377

    PHP code.. needs altering here... way over my head

    I have this code I got from a tut here on FK. It works but I have more fields than the standard to/from/subject/message...

    How do I alter this code to include more.. as in phone number, address, city??

    <?php
    mail("mdesamito@hotmail.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
    ?>
    ps... it needs to show up in the message section of my email.

    help me pelezzzzzzzzz =)

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    so put them into the message...
    $message = "
    request for info

    Name: $name
    Street: $street
    City: $city
    Zip: $zip
    Phone: $phone Fax $fax

    has left this message:
    " . $message;

    Musicman


  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    377
    <?php
    mail("mdesamito@hotmail.com", $subject, $message = "
    request for info

    Name: $name
    Street: $street
    City: $city
    Zip: $zip
    Phone: $phone Fax $fax

    has left this message:
    " . $message; , "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
    ?>

    is this the correct syntax.. I don't know about php. after I put these variables in the $message field... does it close like this ".message; ," or ".message;" or ".message,"

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