MMCT TEAM
Server IP : 153.92.220.142  /  Your IP : 216.73.216.29
Web Server : LiteSpeed
System : Linux nl-srv-web513.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
User : u444427800 ( 444427800)
PHP Version : 8.1.32
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/velvethomez.com/../jmgcl.com/../sangeetlawn.com/public_html/js/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u444427800/domains/velvethomez.com/../jmgcl.com/../sangeetlawn.com/public_html/js/../mail.php
<?php include('./include/connect.php');

if (isset($_POST['submit_message'])) {
    $fname = $_POST["fname"];
    $lname = $_POST["lname"];
    $mobile = $_POST["mobile"];
    $email = $_POST["email"];
    $msg = addslashes($_POST["msg"]);
    if (
        $fname
        && $lname
        && $mobile
        && $email
        && $msg
    ) {

        $query = "INSERT INTO `contact`(`first_name`, `last_name`, `email`, `mobile`, `message`) VALUES (
            '$fname',
            '$lname',
            '$email',
            '$mobile',
            '$msg'
        )";
        $insert = $conn->query($query);
        if ($insert) {
            ?>
            <script>
                alert('Thanks For Visit, We will Contact You Soon!');
                location.replace('./contactus.php')
            </script>
            <?php
        } else {
            ?>
            <script>
                alert('Some Error Occured Please Try again Later');
                location.replace('./contactus.php')
            </script>
            <?php
        }
    } else {
        ?>
        <script>
            alert('Enter Your Correct Details !');
        </script>
        <?php
    }
}


if (isset($_POST['submit'])) {
    $name = $_POST["name"];
    $mobile = $_POST["mobile"];
    $email = $_POST["email"];
    $address = $_POST["address"];
    $service = $_POST["option"];
    if (
        $name
        && $mobile
        && $email
        && $address
        && $service
    ) {

        $insert = $conn->query("INSERT INTO `enquiry`(`name`, `mobile`, `email`, `address`, `service`) VALUES (
        '$name',
        '$mobile',
        '$email',
        '$address',
        '$service'
    )");
        if ($insert) {
            ?>
            <script>
                alert('Thanks For Enquiry!');
                location.replace('./');
            </script>
            <?php
        } else {
            ?>
            <script>
                alert('Some Error Occured Please Try again Later');
                location.replace('./');
            </script>
            <?php
        }

    } else {
        ?>
        <script>
            alert('Enter Correct Details');
            location.replace('./');
        </script>
        <?php
    }

}

MMCT - 2023