MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/digitrendzing/inc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/digitrendzing/inc/enq.php
<section class="web_contact-section digital_fact-section">
    <div class="container"> 
        <div class="row">
            <div class="col-lg-6 col-md-12 col-sm-12 col-12">
                <!-- <div class="fact_content">                     -->
                    <h5>FIND PROGRESS</h5>
                    <!-- <h2>Make Your Marketing More Effective</h2>
                    <p class="text">Reduce marketing costs for your product. Finding the best marketing solution for your business.</p>
                    <div class="lower-portion">
                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6 col-6">
                                <div class="box">
                                    <figure class="mb-0 icon">
                                        <img src="assets/images/fact-icon1.png" alt="" class="img-fluid icon-pro">
                                    </figure>
                                    <div class="content">
                                        <span class="value counter">2975</span>
                                        <sup class="mb-0 plus">+</sup>
                                        <span class="mb-0 text1">Business Ideas</span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-6">
                                <div class="box box1">
                                    <figure class="mb-0 icon">
                                        <img src="assets/images/fact-icon2.png" alt="" class="img-fluid icon-pro">
                                    </figure>
                                    <div class="content">
                                        <span class="value counter">4000</span>
                                        <sup class="mb-0 plus">+</sup>
                                        <span class="mb-0 text1">Happy Customers</span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-6">
                                <div class="box">
                                    <figure class="mb-0 icon">
                                        <img src="assets/images/fact-icon3.png" alt="" class="img-fluid icon-pro">
                                    </figure>
                                    <div class="content">
                                        <span class="value counter">1050</span>
                                        <sup class="mb-0 plus">+</sup>
                                        <span class="mb-0 text1">Media Posts</span>
                                    </div>
                                </div>
                            </div>

                            <div class="col-lg-6 col-md-6 col-sm-6 col-6">
                                <div class="box box1">
                                    <figure class="mb-0 icon">
                                        <img src="assets/images/fact-icon4.png" alt="" class="img-fluid icon-pro">
                                    </figure>
                                    <div class="content">
                                        <span class="value counter">7456</span>
                                        <sup class="mb-0 plus">+</sup>
                                        <span class="mb-0 text1">Finished Projects</span>
                                    </div> 
                                </div>
                            </div>

                            <div class="col-lg-6 col-md-6 col-sm-6 col-6">
                                <div class="box">
                                    <figure class="mb-0 icon">
                                        <img src="assets/images/potential-icon1.png" alt="" class="img-fluid icon-pro">
                                    </figure>
                                    <div class="content">
                                        <span class="value counter">200</span>
                                        <sup class="mb-0 plus">+</sup>
                                        <span class="mb-0 text1">Award Winning</span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-6">
                                <div class="box">
                                    <figure class="mb-0 icon">
                                        <img src="assets/images/potential-icon3.png" alt="" class="img-fluid icon-pro">
                                    </figure>
                                    <div class="content">
                                        <span class="value counter">1500</span>
                                        <sup class="mb-0 plus">+</sup>
                                        <span class="mb-0 text1">Every Industry</span>
                                    </div>
                                </div>
                            </div>

                        </div> 
                    </div> -->
                <!-- </div> -->

                <div class="contact_wrapper position-relative">
                    <figure class="contact-image mb-0">
                        <img src="assets/images/contact-image.jpg" class="img-fluid" alt="">
                    </figure>
                    <figure class="contact-boximage1 mb-0">
                        <img src="assets/images/contact-boximage1.png" class="img-fluid" alt="">
                    </figure>
                    <figure class="contact-boximage2 mb-0">
                        <img src="assets/images/contact-boximage2.png" class="img-fluid" alt="">
                    </figure>
                    <figure class="contact-boximage3 mb-0">
                        <img src="assets/images/contact-boximage3.png" class="img-fluid" alt="">
                    </figure>
                </div>
            </div>
            <div class="col-lg-6 col-md-12 col-sm-12 col-12">
                <div class="contact_content">
                    <div class="heading">
                        <h5>Get in Touch</h5>
                        <h2 style="color:var(--e-global-color-very-dark-blue)">Send us a Message</h2>
                    </div>
                    <form method="POST">
                        <div class="form-group"> 
                            <input type="text" class="form_style input1" placeholder="Name" name="name" required> 
                        </div>
                        <div class="form-group">
                            <input type="number" class="form_style" placeholder="Phone" name="phone" required>
                        </div>
                        <div class="form-group">
                            <input type="email" class="form_style input1" placeholder="Email" name="email" required>
                        </div>
                        <div class="form-group"> 
                            <input type="url" class="form_style" placeholder="Website URL" name="url" required>
                        </div>

                        <div class="form-group mb-3"> 
                            <select name="enq" id="" class="form-control form_style" required>
                            <option value="Seo">Select</option>
                                <option value="Seo">Seo</option>
                                <option value="Marketing">Marketing</option>
                            </select>
                          
                        </div>
                        <div class="form-group message">
                            <textarea class="form_style" placeholder="Message" rows="3" name="msg" required></textarea>
                        </div>
                        <button type="submit" class="send_message" id="thankYouModal">Send Message</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>



<?php
error_reporting(E_ALL & ~E_WARNING);

// Sample POST data (Remove this in production)
$_POST['name'] = "John Doe";
$_POST['phone'] = "1234567890";
$_POST['email'] = "john@example.com";
$_POST['url'] = "http://example.com";
$_POST['enq'] = "Inquiry message";
$_POST['msg'] = "This is a test message.";

// Prepare HTML message
$html_message = '<h1>New Enquiry Details.</h1>';
$html_message .= '<p>Name: ' . $_POST['name'] . '</p>';
$html_message .= '<p>Contact number: ' . $_POST['phone'] . '</p>';
$html_message .= '<p>Email: ' . $_POST['email'] . '</p>';
$html_message .= '<p>Website Url: ' . $_POST['url'] . '</p>';
$html_message .= '<p>Website Enquiry: ' . $_POST['enq'] . '</p>';
$html_message .= '<p>Message: ' . $_POST['msg'] . '</p>';

$to = "info@gmail.com";
$subject = "Enquiry us";

$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";

// Send the email
$retval = mail($to, $subject, $html_message, $header);

// Display modal after sending email
if ($retval == true) {
    $modal_message = "Our team will reach out to you soon!";
} else {
    $modal_message = "Mail Not Sent Properly";
}
?>









MMCT - 2023