Results 1 to 3 of 3

Thread: basic mailing

  1. #1
    Join Date
    Dec 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default basic mailing

    hey everyone, i am trying to write a small validation script of some information on a single form page and at the end of the validation if everything is correct mail ALL of the entered information to myself. my quick mail statement looks like this:
    Code:
    	mail('ngirard@....com',$subject, $problem,"From: $name <$email>");
    but i am unable to send the other variables that are passed from the form into the session because there are only 8 parameters allowed in mail();. i am new to this as you can probably tell and was wondering if i could take the other 5 or 6 variables i pass into validation and make them be the body of the mail?
    any help is appreciated

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Well, you could join the $problem variable as one. In other words,

    Code:
    $problem = "Question 1: $q1 \r\n";
    $problem .= "Question 2: $q2 \r\n";
    Notice the " .= " in the second $problem variable.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Dec 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    works well, 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
  •