If(!isset($_POST['submit'])){
?>
}Else{
include_once "db.php";
$contact_person=$_POST['contact_person'];
$mobile_number=$_POST['mobile_number'];
$email_address=$_POST['email_address'];
$query_suggestion=$_POST['query_suggestion'];
$str_contact_person=str_replace(" ","_",$contact_person);
$msg1="Vibodha Educational Services thanking you for enquiry on our Website.";
$msg2="Enquiry from ".$contact_person." (".$mobile_number.")%0a%0a".$query_suggestion;
echo '';
echo '';
$query="insert into feedback(contact_person,mobile_number,email_address,query_suggestion,stamp) values('$contact_person',$mobile_number,'$email_address','$query_suggestion',now())";
$result=mysql_query($query) or die('Could not insert data records because : '.mysql_error());
echo "
Thank you for your Enquiry.";
}
?>