-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
executable file
·89 lines (82 loc) · 3.08 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
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
<?php include 'includes/partials/header.php' ?>
<div id="colorlib-container">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="heading-2">Contact Information</h2>
<div class="row contact-info-wrap row-pb-lg">
<div class="col-md-3">
<p><span><i class="icon-location-2"></i></span> 20 North Audley St, Suite 721 <br> Mayfair, London W1K 6HX </p>
</div>
<div class="col-md-3">
<p><span><i class="icon-phone3"></i></span> <a href="tel://02080893152">+44 (0) 208 089 3152</a></p>
</div>
<div class="col-md-3">
<p><span><i class="icon-paperplane"></i></span> <a href="mailto:[email protected]">[email protected]</a></p>
</div>
<div class="col-md-3">
<p><span><i class="icon-globe"></i></span> <a href="#">stuff.io</a></p>
</div>
</div>
</div>
<div class="col-md-12">
<?php
if (isset($_POST['submit']))
{
$to = "[email protected]";
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$subject = wordwrap($_POST['subject'], 70);
$message = $_POST['message'];
$header = "FROM: " . $_POST['email'];
$mail = mail($to, $subject, $message, $header);
if ($mail)
{
echo "<p class='alert-success'>Email successfully sent...</p>";
} else {
echo "<p class='alert-danger'>Email failed...</p>";
}
}
?>
<div class="row">
<div class="col-lg-12">
<h2 class="heading-2">Get In Touch</h2>
<form action="#">
<div class="row form-group">
<div class="col-md-6">
<label for="first_name">First Name</label>
<input type="text" id="first_name" name="first_name" class="form-control" placeholder="Your first name">
</div>
<div class="col-md-6">
<label for="last_name">Last Name</label>
<input type="text" id="last_name" name="first_name" class="form-control" placeholder="Your last name">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<label for="email">Email</label>
<input type="email" id="email" name="email" class="form-control" placeholder="Your email address">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<label for="subject">Subject</label>
<input type="text" id="subject" name="subject" class="form-control" placeholder="The subject of this message">
</div>
</div>
<div class="row form-group">
<div class="col-md-12">
<label for="message">Message</label>
<textarea name="message" id="message" cols="30" rows="10" class="form-control" placeholder="Your message"></textarea>
</div>
</div>
<div class="form-group">
<input type="submit" name="submit" value="Send Message" class="btn btn-primary">
</div>
</form>
</div>
</div>
<?php include 'includes/partials/footer.php'; ?>
</div>
</div>
</div>