File "mail-20241115044747.php"

Full Path: /home/krishnamexports/public_html/ajax/mail-20241115044747.php
File size: 761 bytes
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8

<?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>';
}
?>