-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.php
executable file
·97 lines (80 loc) · 3.13 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
89
90
91
92
93
94
95
96
97
<?php
include_once 'lib/includes.php';
include_once 'lib/functions/default.php';
$page='contact';
@include 'template/head.phtml';
$title = "Contact";
@include 'template/top.phtml';
$success = false;
if (isset($_POST["name"])) {
$name =$_POST["name"];
$mail =$_POST["email"];
$body =$_POST["message"];
Mails::contact($mail, $name, $body);
$success = true;
}
if (!$success)
{
?>
<section id="contact">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Contact</h2>
<h3 class="section-subheading text-muted">Any feedback - welcome.</h3>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<form name="sentMessage" id="contactForm" validate method="POST" action="contact.php">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" placeholder="Your Name *" id="name" name="name" required data-validation-required-message="Please enter your name.">
<p class="help-block text-danger"></p>
</div>
<div class="form-group">
<input type="email" class="form-control" placeholder="Your Email *" id="email" name="email" required data-validation-required-message="Please enter your email address.">
<p class="help-block text-danger"></p>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<textarea class="form-control" placeholder="Your Message *" id="message" name="message" required data-validation-required-message="Please enter a message."></textarea>
<p class="help-block text-danger"></p>
</div>
</div>
<div class="clearfix"></div>
<div class="col-lg-12 text-center">
<div id="success"></div>
<button type="submit" class="btn btn-xl">Send Message</button>
</div>
<div class="clearfix"></div>
<div class="col-lg-12 text-center">
<div id="success"></div>
<br/>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<?
}
else
{
?>
<div class="container thanks">
<div class="jumbotron">
<h1>THANKS!</h1>
<p>
We really appreciate your input!</br>
</p>
<p><a class="btn btn-primary btn-lg" href="index.php">Home</a></p>
</div>
</div>
<?php
}
@include 'template/bottom.phtml';
?>