MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.147.28.111
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/hafinserv.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/hafinserv.com/contact.php
<?php
    include('admin/config.php');
    if (isset($_POST['submit'])) {
        $name = mysqli_real_escape_string($db, $_POST['name']);
        $phone = mysqli_real_escape_string($db, $_POST['phone']);
        $email = mysqli_real_escape_string($db, $_POST['email']);
        $subject = mysqli_real_escape_string($db, $_POST['subject']);
        $message = mysqli_real_escape_string($db, $_POST['message']);

        $insert = "INSERT INTO tbl_queries(name, phone, email, subject, message)
                    VALUES ('$name', '$phone', '$email', '$subject', '$message')";
        $query = mysqli_query($db, $insert);

        if ($query) {
            echo ("<script>
                    window.alert('Successfully Sent Your Query. We Will Contact You Soon.');
                    window.location.href='contact.html';
                </script>");

            mysqli_close($db);
        } else {
            echo ("<script>
                    window.alert('Failed To Send Your Query.');
                    window.location.href='contact.html';
                </script>");
        }
    }                
?>
<!DOCTYPE html>
<html dir="ltr" lang="en">

<head>

<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
 <?php include "top-links.php";?>
<meta name="" content="">
<meta name="UPIS Security" content="<?php echo $datac['phone'] ?>">

<title>HA Finserv | Contact</title>
<meta name="description" content="Visit Us | 1st Floor, Shailwahini Bhawan, Anand Nagar, Arrah , Bhojpur–802301 | +919905085711 | hafinserve@gmail.com"/>

</head>
<body>

    
    
    <?php include "header.php"; ?>
    
    
    <div class="pagehding-sec">
        <div class="pagehding-overlay"></div>
            <div class="container">
                <div class="row">
                    <div class="col-md-12">
                        <div class="page-heading">
                            <h1>Contact Us</h1>
                            <ul>
                                <li><a href="index.php">Home</a></li>
                                <li><a href="contact.php">Contact Us</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="contact-page-sec pt-50 pb-50 ">
        <div class="container">
            <div class="row">
               <div class="form" >
                <form id="contact-form" action="<?php $_PHP_SELF ?>" method="POST">
                    <div class="col-md-8">
                        <div class="contact-field">
                            <h2>Write Your Message</h2>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <div class="single-input-field">
                                <input placeholder="Your Name" type="text" name="name"> 
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <div class="single-input-field">
                                <input placeholder="Phone" type="text" name="phone">
                            </div>
                        </div>
                        
                        <div class="col-md-12 message-input">
                            <div class="single-input-field">
                            <input placeholder="Email" type="email" name="email">
                            </div>
                        </div>
                        <div class="col-md-12 message-input">
                            <div class="single-input-field">
                            <input placeholder="Subject" type="text" name="subject">
                            </div>
                        </div>
                        <div class="col-md-12 message-input">
                            <div class="single-input-field">
                                <textarea placeholder="Message" name="message"></textarea>
                            </div>
                        </div>
                            <div class="single-input-fieldsbtn">
                                <input value="send now " type="submit" name="submit">
                            </div>
                        </div>
                    </div>
                </form>
               </div>
                <div class="col-md-4">
                    <div class="contact-info">
                        <div class="contact-info-item">
                            <div class="contact-info-text">
                                <h2>phone</h2>
                                <span><a href="tel:<?php echo $datac['phone'] ?>" style="color:#999999;"><?php echo $datac['phone'] ?></a></span>
                            </div>
                        </div>
                    </div>
                    <div class="contact-info">
                        <div class="contact-info-item">
                            <div class="contact-info-text">
                                <h2>e-mail</h2>
                                <span><a href="mailto:<?php echo $datac['email'] ?>" style="color:#999999;"> <?php echo $datac['email'] ?></a></span>
                            </div>
                        </div>
                    </div>
                    <div class="contact-info">
                        <div class="contact-info-item">
                            <div class="contact-info-text">
                                <h2>address</h2>
                                <span><?php echo $datac['address']?></span>
                            </div>
                        </div>
                    </div>
                    <div class="contact-info">
                        <div class="contact-info-item">
                            <div class="contact-info-text">
                                <h2>address 2</h2>
                                <span>1st Floor, Shailwahini Bhawan, Anand Nagar, Arrah , Bhojpur–802301.</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    
    <?php include "footer.php"; ?>


</body>

</html>

MMCT - 2023