SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2007
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile From contact form to Email body text!

    how can I pass these variables into the email body text the way i want?

    for example:
    I have these three data from my contact form:

    PHP Code:
    $DD Trim(stripslashes($_POST['DD']));   //day
    $MM Trim(stripslashes($_POST['MM']));   //Month
    $YY Trim(stripslashes($_POST['YY']));   //Year 
    and i would like to receive them like this "Date: DD/MM/YY" in my email body text.
    I have this:

    PHP Code:
    $Body .= "Date: ";
    $Body .= $DD $MM $YY
    what should i put between variables to work fine?

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $Body .= "Date: $DD/$MM/$YY"

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2007
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much...


Bookmarks

Posting Permissions

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