-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.php
93 lines (87 loc) · 2.87 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
<!DOCTYPE html>
<html lang="en-GB">
<?php include './php/head.php'; ?>
<body class="debug o f h d">
<?php
session_start();
//Connect to database
$conn = new mysqli("localhost", "f36im", "f36im", "f36im");
if ($conn->connect_error) {
//Fallback if unable to connect to database
include_once ('./php/error.php');
exit();
}
if (isset($_POST["send"])) {
$msg = $_POST["message"];
$email = $_POST["email"];
mail( "f36im@EE-IM-4717","From " . $email ,$msg);
}
include './php/nav.php' ;
?>
<section class="contact">
<div class="container">
<div class="row">
<div class="three column"></div>
<div class="six column">
<form onsubmit="return validateEmail();" method="post">
<input type="hidden" name="send">
<h2 class="header u-m-large--bottom">Contact Us</h2>
<div class="u-flex">
<div class="u-m-medium--bottom">
<label for="email" class="label--required label--top">
Email
</label>
<span class="input"><input type="text" name="email" id="email" onblur="validateEmail()" class="input--text u-fill" placeholder="name@email.com" required></span>
</div>
<div class="u-m-large--bottom">
<label for="message" class="label--required label--top">
Message
</label>
<span class="input"><textarea name="message" id="message" class="input--text u-fill" rows="5" placeholder="Enter your message." required></textarea></span>
</div>
</div>
<div>
<button type="submit" class="button button--primary button--large">
Submit
</button>
</div>
</form>
</div>
<div class="three column"></div>
</div>
</div>
</section>
<section class="map">
<div class="container">
<div class="row">
<div class="two column"></div>
<div class="three column">
<h3 class="header">Store Location</h3>
<p>
Nanyang Technological University,<br>
50 Nanyang Ave,<br>
Singapore 639798
</p>
<p>
contact@prallie.com<br>
+65 9876 5432
</p>
<p>
Monday - Saturday<br>
6.00 - 10.00 p.m.
</p>
</div>
<div class="five column">
<iframe class="map__widget" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d7529.690063014038!2d103.68075011498722!3d1.3478484640140431!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x31da0f0a99014463%3A0xb8bb0800c52d8219!2sNanyang+Technological+University!5e0!3m2!1sen!2ssg!4v1509101359691" width="100%" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
<div class="two column"></div>
</div>
</div>
</section>
<?php
$conn->close();
include './php/footer.php';
?>
<script type="text/javascript" src='./js/global.js'></script>
</body>
</html>