PDA

View Full Version : basic mailing



nickg21
01-10-2007, 02:57 PM
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:

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

thetestingsite
01-10-2007, 03:01 PM
Well, you could join the $problem variable as one. In other words,



$problem = "Question 1: $q1 \r\n";
$problem .= "Question 2: $q2 \r\n";


Notice the " .= " in the second $problem variable.

Hope this helps.

nickg21
01-10-2007, 04:04 PM
works well, thank you very much