connect(); ///////////GET HTTP VARIBALES./////////////////////// $days = $_REQUEST['days']; $no_of_hours = $_REQUEST['no_of_hours']; $timings = $_REQUEST['timings']; $comments = $_REQUEST['comments']; $course = $_REQUEST['course']; $skill = $_REQUEST['skill']; print_r($days); print_r($no_of_hours); print_r($timings); echo $comments; echo $course; echo $skill; //exit(); $user_id = $_SESSION['uid']; ////server side validation end /////////////////////////////// if (($days=="" or $days==null) and ($timings=="" or $days==null) and ($comments=="" or $days==null) and ($course=="" or $days==null) and ($skill=="" or $days==null)) { echo "All Fields are Blank."; exit(); } for ($i=0; $i"; $body .= "".$no_of_hours[$i].""; $body .= "".$timings[$i].""; $body .= ""; } } $body .= "
"; $body .= "Phone : $areacode - $phone \n"; $body .= "Address :" .$address . "
"; $body .= "Mobile :\t\t$mobile
"; $body .= "Occupation :\t\t$occupation
"; $body .= "Comments :\t\t$comments
"; $body .= "

Thank You
Admin"; $host = "mail.familyofdisabled.org"; $username = "admin@familyofdisabled.org"; $password = "mailpop"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject, 'Content-Type' =>'text/html'); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { $success_msg = ("

" . $mail->getMessage() . "

"); } else { $success_msg = ("

Message successfully sent!

"); } ?> Volunteer
VOLUNTEER
Submit Cancel