Index of /home/htscrtms/newcrm.htshah.com/hslider
<?php
include_once("backend/lib/db_connect.php");
/*echo "<pre>";
print_r($_POST);
exit;*/
$errors = '';
$name = $_POST['form_name'];
//$lname = $_POST['ins_1'];
$email = $_POST['form_email'];
$mobile = $_POST['form_phone'];
$msgs = $_POST['form_message'];
$to = $_REQUEST['form_email'];
$from = "ecom@htshah.com";
$headers = "From: ".$from. "\r\n" .
"MIME-Version: 1.0\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$body ='<html><body>';
$body .= "<b>Name : </b>".$name."<br><br>";
$body .= "<b>Email : </b>".$email."<br><br>";
$body .= "<b>Mobile No : </b>".$mobile."<br><br>";
$body .= "<b>Message : </b>".$msgs."<br><br>";
$body .='</body></html>';
$subject = "Contact Us - HT Shah Reports";
$body = $body;
if(@mail($to, $subject, $body, $headers)){
echo "<script>alert('Thank you for your registration, we will contact you soon.');window.location.href='contact.php';</script>";
}
else{
echo "Please Try Again !";
}
?>