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 .= "Name :$title $first_name $last_name
";
$body .= "Course :$Course
";
$body .= "Skill :$skill
";
$body .= "
| Days | "; $body .= "No of Hours | "; $body .= "Timings | "; $body .= "".$no_of_hours[$i]." | "; $body .= "".$timings[$i]." | "; $body .= ""; } } $body .= "
|---|
" . $mail->getMessage() . "
"); } else { $success_msg = ("Message successfully sent!
"); } ?>
|
||||||||||||||||||||||||||||||||