IsMail(); //$mail->IsSMTP(); $mail->From =$fromEmail; $mail->FromName=$fromEmail; $mail->AddAddress($userEmail); $mail->Subject =$subject; $mail->Body = $strMailBody; $mail->WordWrap = 1000; $mail->IsHTML(true); if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo;exit; } unset( $mail); } if($_POST['submit']=='Submit Form') { $userEmail="info@vcampusglobal.com"; $fromEmail=$_POST['email']; $fromName=$_POST['fname']; $subject="Student Inquiry"; $strMailBody="
First Name : $_POST[fname] Last Name : $_POST[lname] Phone : $_POST[Phone] E-mail : $_POST[email] Contact Time : $_POST[tm] Contact Method : $_POST[tm_t] Street Address : $_POST[Address1] Street Address Line 2 : $_POST[Address2] City : $_POST[City] State / Province : $_POST[State] Postal / Zip Code :$_POST[Zip] Country :$_POST[country] Course : $_POST[Course] Inquiry : $_POST[comment]
"; send_mail($userEmail,$strMailBody,$fromEmail,$fromName,$subject); $InsertQuery="INSERT INTO `enquiry` (`fname` ,`lname` ,`Phone` ,`email`,`tm` ,`tm_t`,`Address1`,`Address2`,`City`,`State`,`Zip`,`country`,`Course`,`comment`) VALUES ('".addslashes($_POST['fname'])."', '".addslashes($_POST['lname'])."', '".addslashes($_POST['Phone'])."', '".addslashes($_POST['email'])."', '".addslashes($_POST['tm'])."', '".addslashes($_POST['tm_t'])."', '".addslashes($_POST['Address1'])."', '".addslashes($_POST['Address2'])."', '".addslashes($_POST['City'])."', '".addslashes($_POST['State'])."', '".addslashes($_POST['Zip'])."', '".addslashes($_POST['country'])."', '".addslashes($_POST['Course'])."', '".addslashes($_POST['comment'])."')"; mysql_query($InsertQuery) or die(mysql_error()); echo ""; } ?> VCAMPUS GLOBAL EDUCATION
 

 Student Inquiry


For inquiry, please use the form below:





Morning Afternoon Evening
E-mail Phone
Street Address
Street Address Line 2
City

State / Province
Postal / Zip Code

Country