-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontact.php
51 lines (50 loc) · 2.4 KB
/
contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php include("layout/navbar.php"); ?>
<div class="container contact banner">
<div class="row ">
<h1 class="my-md-5 py-5 text-center">GET IN TOUCH WITH US</h1>
</div>
</div>
<div class="container">
<div class="row my-2">
<div class="col-md-5">
<h3>Talk to us</h3>
<p>We love to get feedback from the public on how well we offer our services
and advice on what you feel should be changed. Reach out to us anonymously using
the feedback prompt to the right of the screen.
</p>
<h3>Your concerns</h3>
<p>If there are any acts of misconduct or negative feedback you'd like to report
within our medical facility or on this website, please use this same platform
to forward a report.
</p>
</div>
<div class="col">
<form action="">
<div class="row justify-content-center align-items-center my-4">
<div>
<div class="form-control">
<!-- Validate Input -->
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') { //#1
require('process-contactus.php');
} // End of the main Submit conditional.
?>
</div>
<div class="form-group">
<label for="">Email</label>
<input type="text" name="email" id="email" class="form-control" value="<?php if (isset($_POST['email'])) echo htmlspecialchars($_POST['email'], ENT_QUOTES); ?>">
</div>
<div class="form-group">
<label for="">Message</label>
<textarea name="" class="form-control text-area" rows="4" value="<?php if (isset($_POST['email'])) echo htmlspecialchars($_POST['message'], ENT_QUOTES); ?>"></textarea>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btn btn-color my-2 w-100" value="Send">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<?php include("layout/footer.php"); ?>