<?php require_once "header.php" ?>
<!-- Checks is form was submitted. -->
<?php
    $send = false;
    
    if(isset($_POST['send'])) {
      $send = true;  
    }
?>
<div class="container-fluid whole contact">
    <div class="col-md-12 content" style="height: 100vh;">
        <section>
            <h1><span>Contact</span></h1>
            <article class="col-md-6 col-md-offset-3">
                <h2><span>Get in touch!</span></h2>
                <!-- Message will be displayed when form is submitted. -->
                <?php if ($send) {echo '<p class="text-success">Message sent. We will reply soon.</p>';} ?>
                <!-- Form will post to the same page. However no e-mail will be sent since it's a mock website. -->
                <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
                <label for="first_name"><span class="glyphicon glyphicon-user"></span> Name</label></br>
                <input name="first_name" value="" placeholder=""><br>
                <label for="email"><span class="glyphicon glyphicon-envelope"></span> Email</label><br>
                <input name="email" type="text" value="" placeholder=""><br>
                <label for="message"><span class="glyphicon glyphicon-pencil"></span> Message</label><br>
                <textarea name="message"></textarea><br>
                <input name="send" class="btn btn-primary btn-lg btn-send" type="submit" value="Send.">
                </form>
            </article>
        </section>
    </div>
</div>
<?php require_once "footer.php" ?>