ok

Mini Shell

Direktori : /home/importfo/public_html/svpimmigration.com/
Upload File :
Current File : /home/importfo/public_html/svpimmigration.com/inquiry.php

      <?php include("admin/config.php") ?>

      <?php
        if(isset($_POST['submit']))
        {
            $name=$_POST['name'];
            $email=$_POST['email'];
            $contact=$_POST['contact'];
            $subject=$_POST['subject'];
            $msg=$_POST['msg'];
            
            date_default_timezone_set('Asia/Kolkata');
            $currentTime = date( 'd-m-Y h:i:s A', time () );

            $query="INSERT INTO `contact` (`name`, `email`, `contact`, `services`, `message`) VALUES ('$name', '$email', '$contact', '$subject', '$msg')";

            $res=mysqli_query($db,$query);

            if($res==1)
            {

            $to = "immigration.svp@gmail.com,receptionsvp1211@gmail.com";
            $subject = "SVP Immigration Inquiry Detail";
         
            $message .= "<h4>Name : $name</h4>";
            $message .= "<h4>Email : $email </h4>";
            $message .= "<h4>Contact : $contact </h4>";
            $message .= "<h4>Services : $services </h4>";
            $message .= "<h4>Message : $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='index.php';</script>");
            }
        }
        else
        {
            echo "Message Could Not be Send..";
        }
    }
         
          
         /*if( $retval == true ) {
            echo "Message sent successfully...";
         }else {
            echo "Message could not be sent...";
         }*/
        
      ?>
      
   

Zerion Mini Shell 1.0