-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
executable file
·71 lines (53 loc) · 2.58 KB
/
contact.php
File metadata and controls
executable file
·71 lines (53 loc) · 2.58 KB
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
<?php session_start(); ?>
<!doctype html>
<html>
<head>
<title>Basic Demo Tutorial</title>
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/app.css" />
</head>
<body>
<?php require 'lib/header.php'; ?>
<div class="wrap" id="contact-form">
<div class="container container__stacked text-center">
<h2>Get in touch, with us!</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid asperiores aut debitis, eum ex facilis fugiat harum illum inventore molestias necessitatibus omnis possimus praesentium quae quam quisquam, repudiandae voluptas voluptate? Aliquid asperiores aut debitis, eum ex facilis fugiat harum illum inventore molestias necessitatibus omnis possimus praesentium quae quam quisquam, repudiandae voluptas voluptate.</p>
<?php
if($_SESSION['response']) {
foreach($_SESSION['response']['msgs'] as $msg) {
$class = $_SESSION['response']['failed'] ? "failed" : "success";
echo '<p class="'. $class .'">'. $msg .'</p>';
}
}
?>
<form action="process/contact.php" method="post" class="text-left">
<div class="form-group width-full">
<label for="name">Name</label>
<input type="text" class="form-control" name="name" id="name" placeholder="Enter your name..." />
</div>
<div>
<div class="form-group width-half">
<label for="phone">Phone</label>
<input type="text" class="form-control" name="phone" id="phone" placeholder="Enter phone..." />
</div>
<div class="form-group width-half">
<label for="email">Email</label>
<input type="text" class="form-control" name="email" id="email" placeholder="Enter email..." />
</div>
</div>
<div class="form-group width-full">
<label for="message">Message</label>
<textarea class="form-control" name="message" id="message" placeholder="Enter your message..."></textarea>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Send message</button>
</div>
</form>
</div>
</div>
<?php require 'lib/locations.php'; ?>
<?php require 'lib/map.php'; ?>
<?php require 'lib/footer.php'; ?>
</body>
</html>
<?php unset($_SESSION['response']); ?>