-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
104 lines (87 loc) · 3.92 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
98
99
100
101
102
103
104
<?php include"config.php";?>
<!DOCTYPE html>
<html lang="en">
<?php include"head.php";?>
<body>
<?php
include"top_nav.php";
?>
<div class="container" style="margin-top:70px;">
<div class="row">
<div class="col-md-6">
<?php
if(isset($_POST["submit"]))
{
$sql="INSERT INTO messages (NAME, CONTACT, EMAIL, MESSAGE, STATUS,LOGS) VALUES ('{$_POST["name"]}', '{$_POST["phone"]}', '{$_POST["email"]}', '{$_POST["message"]}', 1,NOW());";
if($con->query($sql))
{
echo '
<div class="alert alert-success">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Success!</strong> Your message has been Successfully sent.
</div>
';
}
}
?>
<h3 class='text-danger'>Send us a Message</h3>
</br>
</br>
</br>
<form method="post" action="contact.php" role="form" >
<div class="control-group form-group">
<div class="controls">
<label>Full Name:</label>
<input type="text" class="form-control" name="name" required>
<p class="help-block"></p>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Phone Number:</label>
<input type="tel" class="form-control" name="phone" required>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Email Address:</label>
<input type="email" class="form-control" name="email" >
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Message:</label>
<textarea rows="5" cols="100" class="form-control" name="message" required maxlength="999" style="resize:none"></textarea>
</div>
</div>
<div id="success"></div>
<!-- For success/fail messages -->
<button type="submit" class="btn btn-success" name="submit"> Send Message</button>
</form>
</div>
<div class="col-md-4">
<h3 class='text-danger'>Contact Details</h3>
<p>
AIUB Blood Bank<br>
Kuratoli,Kuril<br>
Dhaka North<br>
</p>
<p><i class="fa fa-phone"></i>
<abbr title="Phone">Mobile:</abbr>: 01715606162</p>
<p><i class="fa fa-envelope-o"></i>
<abbr title="Email">Email:</abbr>: <a href="#" >[email protected]</a>
</p>
<p><i class="fa fa-clock-o"></i>
<abbr title="Hours">Hours:</abbr>: 24*7</p>
<p><i class="fa fa-globe"></i>
<abbr title="Website">Website:</abbr>: <a href="index.php">www.aiub.edu</a></p>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2232.0416053177087!2d90.42794516091135!3d23.822297358613998!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xc47f7c3e8e2263f2!2sAmerican+International+University-Bangladesh!5e1!3m2!1sen!2sbd!4v1563998003879!5m2!1sen!2sbd" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
<hr>
<?php include"footer.php"; ?>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>