-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact-us.php
136 lines (124 loc) · 5.3 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
session_start();
if(isset($_SESSION["error"])) {
$error = $_SESSION["error"];
unset($_SESSION["error"]);
} else {
$error = "";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Contact Us</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<!-- js code for quiz. -->
<!-- <script>
var nameValue = document.getElementById("name").value;
var emailValue = document.getElementById("email").value;
var messageValue = document.getElementById("message").value;
var checkedValue = document.querySelector('robotcheck:checked').value;
</script> -->
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Logo -->
<a href="index.php" class="logo">
<span class="symbol"><img src="images/logo.png" alt="" /></span><span class="title">Covid Tracker</span>
</a>
<!-- Nav -->
<nav>
<ul>
<li><a href="#menu">Menu</a></li>
</ul>
</nav>
</div>
</header>
<!-- Menu -->
<nav id="menu">
<h2>Menu</h2>
<ul>
<li><a href="index.php">Overview</a></li>
<li><a href="symptoms.html">Symptoms</a></li>
<li><a href="prevention.html">Prevention</a></li>
<li><a href="get-help.php">Treatment / Help</a></li>
<li><a href="contact-us.php">Contact Us</a></li>
<?php
if(isset($_SESSION['userid']) && !empty($_SESSION['userid'])) {
?>
<li><a href="assets/php/logout.php">Logout</a></li>
<?php
} else {
?>
<li><a href="login.php">SignIn</a></li>
<?php } ?>
</ul>
</nav>
<!-- Main -->
<div id="main">
<div class="inner">
<h1>Contact Us</h1>
<span class="image main"><img src="images/contactus.png" alt="" /></span>
<section>
<h2>Get in touch</h2>
<form action="assets/php/contact.php" method="POST">
<div class="fields">
<div class="field half">
<input type="text" name="name" id="name" required="required" placeholder="Name" />
</div>
<div class="field half">
<input type="email" name="email" id="email" required="required" placeholder="Email" />
</div>
<div class="field">
<textarea name="message" id="message" required="required" placeholder="Message"></textarea>
</div>
</div>
<div class="g-recaptcha" data-sitekey="WEBSITEKEYHERE" data-theme="light" data-size="normal" data-image="image"></div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<p>
<small style="color: red;"><?php print $error; ?></small>
</p>
<ul class="actions">
<li><input type="submit" value="Send" name="submit" class="primary" /></li>
</ul>
</form>
</section>
</div>
</div>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<section>
<h2>Follow</h2>
<ul class="icons">
<li><a href="#" class="icon brands style2 fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon brands style2 fa-facebook-f"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon brands style2 fa-instagram"><span class="label">Instagram</span></a></li>
<li><a href="#" class="icon brands style2 fa-dribbble"><span class="label">Dribbble</span></a></li>
<li><a href="#" class="icon brands style2 fa-github"><span class="label">GitHub</span></a></li>
<li><a href="#" class="icon brands style2 fa-500px"><span class="label">500px</span></a></li>
<li><a href="#" class="icon solid style2 fa-phone"><span class="label">Phone</span></a></li>
<li><a href="#" class="icon solid style2 fa-envelope"><span class="label">Email</span></a></li>
</ul>
</section>
<ul class="copyright">
<li>© E Lara. All rights reserved</li>
</ul>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>