MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.117.172.189
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/fastelevator.in/../bsaec.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/fastelevator.in/../bsaec.in/form.php
<?php
if(isset($_POST['submit'])) 
{ 
 
include 'admin/config.php';

 $name = htmlspecialchars($_POST['name'],ENT_QUOTES);
 $phone = htmlspecialchars($_POST['phone'],ENT_QUOTES);
 $email = htmlspecialchars($_POST['email'],ENT_QUOTES);
 $subject = htmlspecialchars($_POST['subject'],ENT_QUOTES);
 $message = $_POST['message'];

$sql20="INSERT INTO `tb7_user_issue`(`name`, `email`, `phone`, `course`,`message`) VALUES ('$name','$email','$phone','$subject','$message')";
$result20 = mysqli_query($db, $sql20) or die("Query unsuccessful");

if($result20){
    // header('location:blog-list.php');
    echo ("<script LANGUAGE='JavaScript'>
 window.alert('Your Query has been submited. Our team will contact you soon!');
 window.location.href='courses.php';
</script>");
    // echo "submited";
    mysqli_close($db);
}else{
    // header('location:add-blog.php');
    echo 'Error';
}
}

?>

<div  class="container-xxl " style="padding-top:55px!important;">
        <div class="container">
            <div style="background:#dedede" class="row g-5">
                <div class="col-lg-6 wow fadeInUp" data-wow-delay="0.1s" style="min-height: 450px;">
                    <div class="position-relative h-100">
                        <iframe src="<?php echo $data01['map_link']?>" width="100%" height="100%" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
                    </div>
                </div>
                <div class="col-lg-6 wow fadeInUp" data-wow-delay="0.5s">
                    <h6 class="text-primary text-uppercase mb-2">Contact Us</h6>
                    <h1 class="display-6 mb-4">If You Have Any Query, Please Contact Us</h1>
                    <form action="<?php $_PHP_SELF ?>" method="POST">
                        <div class="row g-3">
                            <div class="col-md-6">
                                <div class="form-floating">
                                    <input type="text" class="form-control border-0 bg-light" id="name" name="name" placeholder="Your Name">
                                    <label for="name">Your Name</label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-floating">
                                    <input type="email" class="form-control border-0 bg-light" id="email" name="email" placeholder="Your Email">
                                    <label for="email">Your Email</label>
                                </div>
                            </div>
                            <div class="col-12">
                                <div class="form-floating">
                                    <input type="text" class="form-control border-0 bg-light" id="phone" name="phone" placeholder="Phone no.">
                                    <label for="phone">Phone Number</label>
                                </div>
                            </div>
                            <div class="col-12">
                                <div class="form-floating">
                                    <textarea class="form-control border-0 bg-light" name="message" placeholder="Leave a message here" id="message" style="height: 150px"></textarea>
                                    <label for="message">Message</label>
                                </div>
                            </div>
                            <div class="col-12">
                                <button class="btn btn-primary py-3 px-5" type="submit" name="submit">Send Message</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

MMCT - 2023