ok

Mini Shell

Direktori : /home/importfo/www/drrhythmsdentalhub.com/
Upload File :
Current File : /home/importfo/www/drrhythmsdentalhub.com/inquiry.php

 <?php
 include("admin/config.php");           
            if(isset($_POST['submit']))
            {
                error_reporting(0);
                $name=$_POST['name'];
                $email=$_POST['email'];
                $contact=$_POST['contact'];
                //$services=$_POST['sub'];
                $msg=$_POST['msg'];

                date_default_timezone_set('Asia/Kolkata');
                $currentTime = date( 'd-m-Y h:i:s A', time () );
                
                $sql="INSERT INTO `contact` (`name`, `email`, `contact`,`services`,`message`,`date`) VALUES ('$name','$email ','$contact','$services','$msg','$currentTime')";
                $result=mysqli_query($db,$sql);

                if($result==1)
                {
             
                    $to = "divineclinic21@gmail.com";
                    $subject = "DIVINE CLINIC Website Enquiry Detail";
             
                    $message .= "<h4>Name : $name</h4>";
                    $message .= "<h4>Email : $email </h4>";
                    $message .= "<h4>Contact : $contact </h4>";
                    //$message .= "<h4>Salon services : $services </h4>";
                    $message .= "<h4>MSG : $msg </h4>";

                    $header = "From:$email \r\n";
                    /*$header .= "Cc:inddigmedia@gmail.com\r\n";*/
                    $header .= "MIME-Version: 1.0\r\n";
                    $header .= "Content-type: text/html\r\n";
                 
                    $retval = mail ($to,$subject,$message,$header);
                    if( $retval == true )
                    { 
                      echo ("<script LANGUAGE='JavaScript'>window.location.href='thank-you-page.php';</script>");
                      /*echo "email send sucessfully";*/ 
                    }
                     }
                else
                {
                    echo "Email Could Not Send.!";
                }
            }
        ?>


   <!DOCTYPE html>
<html lang="zxx">
    <head>
        <?php include('topup.php');?>
    </head>
    <body>
       

       <?php include("top.php") ?>

        <div class="page-banner-area">
            <div class="container">
                <div class="page-banner-content">
                    <h2>Thanks</h2>
                    <ul class="pages-list">
                        <li><a href="index.php">Home</a></li>
                        <li>Thanks</li>
                    </ul>
                </div>
            </div>
        </div>

        <section class="error-area ptb-100">
            <div class="d-table">
                <div class="d-table-cell">
                    <div class="container">
                        <div class="error-content">
                            <img src="assets/images/404.png" alt="error" />
                            <h3>Thank You</h3>
                            <p>Your Inquiry Sucessfully Send.</p>
                            <a href="index.php" class="default-btn">Go to Home</a>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <?php include("footer.php") ?>

        <div class="go-top">
            <i class="bx bx-up-arrow-alt"></i>
        </div>

        <script src="assets/js/jquery.min.js"></script>
        <script src="assets/js/popper.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
        <script src="assets/js/jquery.meanmenu.js"></script>
        <script src="assets/js/owl.carousel.min.js"></script>
        <script src="assets/js/jquery.appear.js"></script>
        <script src="assets/js/odometer.min.js"></script>
        <script src="assets/js/nice-select.min.js"></script>
        <script src="assets/js/jquery.magnific-popup.min.js"></script>
        <script src="assets/js/jquery.ajaxchimp.min.js"></script>
        <script src="assets/js/form-validator.min.js"></script>
        <script src="assets/js/contact-form-script.js"></script>
        <script src="assets/js/wow.min.js"></script>
        <script src="assets/js/main.js"></script>
    </body>

</html>

      
   

Zerion Mini Shell 1.0