ok

Mini Shell

Direktori : /proc/self/root/home/importfo/public_html/drkajalskinclinic.com/
Upload File :
Current File : //proc/self/root/home/importfo/public_html/drkajalskinclinic.com/inquiry.php

 <?php
 include("admin/config.php");           
            if(isset($_POST['submit']))
            {
                error_reporting(0);
                $name=$_POST['name'];
                $email=$_POST['email'];
                $contact=$_POST['contact'];
                $adate=$_POST['adate'];
                $atime=$_POST['atime'];
                //$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')";

                 $sql="INSERT INTO `contact`(`name`, `email`, `adate`,`atime`,`contact`, `message`) VALUES ('$name','$email','$adate','$atime','$contact','$msg')";
               



                $result=mysqli_query($db,$sql);

                if($result==1)
                {
             
                    $to = "info@drkajalskinclinic.com";
                    $subject = "Dr. Kajal's Skin and Hair Clinic  Website Enquiry Detail";
             
                    $message .= "<h4>Name : $name</h4>";
                    $message .= "<h4>Email : $email </h4>";
                    $message .= "<h4>Contact : $contact </h4>";
                    // $message .= "<h4>Date : $adate </h4>";
                    // $message .= "<h4>Time : $atime </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.!";
                }
            }
        ?>


   

Zerion Mini Shell 1.0