<?php session_start(); include('../config/database.php'); $name = $_POST['name']; $mobile = $_POST['phone']; $email = $_POST['email']; $country = $_POST['country']; $message = mysqli_real_escape_string($cn,strip_tags($_POST['message'])); if(!empty($name) && !empty($email) && !empty($country) && !empty($message)) { $sqlOrder = mysqli_query($cn, "INSERT INTO `tbl_contact` SET `name`='".$name."', `email`='".$email."', `mobile`='".$mobile."', `country`='".$country."', `message`='".$message."', `date`=Now()"); if($sqlOrder) { echo '<div class="alert alert-success">Thank you for your Interest. Our Team will revert Shortly.</div>'; } } else { echo '<div class="alert alert-danger">Please Fill Required Fields.</div>'; } ?>