-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcontact_us.php
47 lines (38 loc) · 1.72 KB
/
contact_us.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/contact_us.css">
<title>Mathisi</title>
</head>
<body>
<main class="view">
<div class="sidebar">
<img src="images/Logo.svg" alt="Mathisi">
</div>
<div class="contact-section">
<a href="index.html">HOME</a>
<div class="contact-form-container">
<p>Contact Us</p>
<div class="contact-form">
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['submit'])) {
if (empty($_POST['name']) || empty($_POST['email']) || empty($_POST['message'])) {
echo "Please fill all fields";
} else {
echo "Thank you for reaching out to us, we shall get in touch with you as soon ass possible.";
}
}
?>
<form action="" method="post">
<input type="text" id="name" name="name" placeholder="Name..">
<input type="email" id="email" name="email" placeholder="E-mail..">
<textarea id="subject" name="message" placeholder="Message.." style="height:200px"></textarea>
<input type="submit" name="submit" value="Submit">
</form>
</div>
</div>
</div>
</main>