<?php
$title = 'Thank You | Website Development Agency';
include 'header.php';
?>

<!-- inner-banner -->

<section class="main-banner bg-prop contect-inner-banner" style="background-image: url('assets/images/banner-bg.webp')">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="banner-content inner-banner-con">
                    <h1>Thank You</h1>
                </div>
            </div>
        </div>
    </div>
</section>

<!--contact-form-->

<?php

if (isset($_POST['ssubmit'])) {

    $sfname    = $_POST['sfname'];
    $sphone   = $_POST['sphone'];
    $semail = $_POST['semail'];
    $smessage = $_POST['smessage'];
    $stitle = $_POST['stitle'];
    

    $to = "inquiry@screenlinktechnologies.com";
    $subject = "Service Form";

    $message = "<html><head><title>Screenlink Technologies</title></head><body>
 
<table border='1'>
    <tr><th>Name</th><td>$sfname</td></tr>
    <tr><th>Phone Number</th><td>$sphone</td></tr>
    <tr><th>Email</th><td>$semail</td></tr>
    <tr><th>Message</th><td>$smessage</td></tr>
    <tr><th>Service Name</th><td>$stitle</td></tr>
</table></body></html>";

    // Always set content-type when sending HTML email
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

    // More headers
    $headers .= 'From: <client@screenlinktechnologies.com>' . "\r\n";
    $headers .= 'Cc: client@screenlinktechnologies.com' . "\r\n";

    mail($to, $subject, $message, $headers);
}

?>

<?php

if (isset($_POST['csubmit'])) {

    $cname    = $_POST['cname'];
    $cemail   = $_POST['cemail'];
    $cphone = $_POST['cphone'];
    $cmessage = $_POST['cmessage'];
    

    $to = "inquiry@screenlinktechnologies.com";
    $subject = "Contact Form";

    $message = "<html><head><title>Screenlink Technologies</title></head><body>
 
<table border='1'>
    <tr><th>Name</th><td>$cname</td></tr>
    <tr><th>Phone Number</th><td>$cphone</td></tr>
    <tr><th>Email</th><td>$cemail</td></tr>
    <tr><th>Message</th><td>$cmessage</td></tr>
</table></body></html>";

    // Always set content-type when sending HTML email
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

    // More headers
    $headers .= 'From: <client@screenlinktechnologies.com>' . "\r\n";
    $headers .= 'Cc: client@screenlinktechnologies.com' . "\r\n";

    mail($to, $subject, $message, $headers);
}

?>

<?php

if (isset($_POST['qusubmit'])) {

    $quname    = $_POST['quname'];
    $qulname    = $_POST['qulname'];
    $quemail   = $_POST['quemail'];
    $quphone = $_POST['quphone'];
    $qumessage = $_POST['qumessage'];
    $qcheck = $_POST['qcheck'];
    

    $to = "inquiry@screenlinktechnologies.com";
    $subject = "Query Form";

    $message = "<html><head><title>Screenlink Technologies</title></head><body>
 
<table border='1'>
    <tr><th>First Name</th><td>$quname</td></tr>
    <tr><th>Last Name</th><td>$qulname</td></tr>
    <tr><th>Phone Number</th><td>$quphone</td></tr>
    <tr><th>Email</th><td>$quemail</td></tr>
    <tr><th>Message</th><td>$qumessage</td></tr>
    <tr><th>Subscribe</th><td>$qcheck</td></tr>
</table></body></html>";

    // Always set content-type when sending HTML email
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

    // More headers
    $headers .= 'From: <client@screenlinktechnologies.com>' . "\r\n";
    $headers .= 'Cc: client@screenlinktechnologies.com' . "\r\n";

    mail($to, $subject, $message, $headers);
}

?>


<!-- section-thank-you -->

<section class="thank-you spacing">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-7">
                <div class="web-title text-center">
                    <h2>Thank you for <span>submitting!</span></h2>
                    <p class="my-3">Your message has been sent!</p>
                    <a href="index.php" class="web-btn">Go Home</a>
                </div>
            </div>
        </div>
    </div>
    <div class="left-grad">
    </div>
    <div class="right-grad">
    </div>
</section>


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