<?php 
session_start();
if(isset($_POST['Send'])){
        date_default_timezone_set("Asia/Kolkata");
    $enquiry_date = Date('Y-m-d H:i:s');
       
$name = strip_tags(htmlspecialchars($_POST['name']));


$phone = strip_tags(htmlspecialchars($_POST['mobile']));
$email="noreply@aaztecsolution.com";


$to = "Vineet@aaztecsolution.com"; // change this email to your //
$subject = $name;
$body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nPhone: $phone";


$headers = "From: " . strip_tags($email);
//   $headers .= "Reply-To: ". strip_tags($email) . "\r\n";
//$headers .= "CC: developer@easygrowtech.com\r\n";
// headers .= "MIME-Version: 1.0\r\n";
// headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

if(mail($to, $subject, $body, $headers)) {
//   echo"maile";exit;
$_SESSION['details']=$phone;
?>
 <script>window.location.replace('http://aaztec.wedigitalindia.com/catelogue.php');</script> 
<?php 


}
// http_response_code(500);
        
   }
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <?php include_once("assets/include/head.php")?>
    </head>
    <body>
        <?php include_once("assets/include/header.php")?>
        <!-- <div class="about-banner-wrap">
            <picture>
                <source media="(min-width: 768px)" srcset="assets/images/bg/contact-us-01-hero-bg.webp">
                <source media="(max-width: 767px)" srcset="assets/images/bg/contact-us-01-hero-bg.webp">
                <img src="" alt="">
            </picture>
            <nav aria-label="breadcrumb" class="bg-theme-default">
                <div class="container">
                    <ol class="breadcrumb mb-0">
                        <li class="breadcrumb-item"><a href='<?php echo website_base_path()?>'>Home</a></li>
                        <li class="breadcrumb-item active" aria-current="page">About Us</li>
                    </ol>
                </div>
            </nav>
        </div> -->
        <!--====================  Conact us Section Start ====================-->
        <div class="contact-us-section-wrappaer section-space--pt_100 section-space--pb_70">
            <div class="container">
                <div class="row align-items-center">
                    

                    <div class="col-lg-8 col-lg-6">
                        <div class="contact-form-wrap">

                            <!-- <form id="contact-form" action="http://whizthemes.com/mail-php/jowel/mitech/php/mail.php" method="post"> -->
                            <form  action="" method="post">
                                <div class="contact-form">
                                    <div class="contact-input">
                                        <div class="contact-inner">
                                            <input name="name" type="text" placeholder="Name*">
                                        </div>
                                      
                                        
                                        <div class="contact-inner">
                                            <input name="mobile" type="number" required placeholder="Phone Number *">
                                        </div>
                                       
                                    <div class="submit-btn mt-20">
                                        <input class="ht-btn ht-btn-md" name="Send" type="submit" value="Send message">
                                        <p class="form-messege"></p>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--====================  Conact us Section End  ====================-->

        <!--====================  Conact us info Start ====================-->
       
        <?php include_once("assets/include/footer.php")?>
    </body>
</html>