-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactus.php
146 lines (136 loc) · 5.64 KB
/
contactus.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
include("function/login.php");
include("function/customer_signup.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>Online Shoe Store</title>
<link rel="icon" href="img/logo.jpg" />
<link rel = "stylesheet" type = "text/css" href="css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<script src="js/bootstrap.js"></script>
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/carousel.js"></script>
<script src="js/button.js"></script>
<script src="js/dropdown.js"></script>
<script src="js/tab.js"></script>
<script src="js/tooltip.js"></script>
<script src="js/popover.js"></script>
<script src="js/collapse.js"></script>
<script src="js/modal.js"></script>
<script src="js/scrollspy.js"></script>
<script src="js/alert.js"></script>
<script src="js/transition.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div id="header">
<img src="img/logo.jpg">
<label>Online Shoe Store</label>
<ul>
<li><a href="#signup" data-toggle="modal">Sign Up</a></li>
<li><a href="#login" data-toggle="modal">Login</a></li>
</ul>
</div>
<div id="login" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:400px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3 id="myModalLabel">Login...</h3>
</div>
<div class="modal-body">
<form method="post">
<center>
<input type="email" name="email" placeholder="Email" style="width:250px;">
<input type="password" name="password" placeholder="Password" style="width:250px;">
</center>
</div>
<div class="modal-footer">
<input class="btn btn-primary" type="submit" name="login" value="Login">
<button class="btn btn-danger" data-dismiss="modal" aria-hidden="true">Close</button>
</form>
</div>
</div>
<div id="signup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:700px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3 id="myModalLabel">Sign Up Here...</h3>
</div>
<div class="modal-body">
<center>
<form method="post">
<input type="text" name="firstname" placeholder="Firstname" required>
<input type="text" name="mi" placeholder="Middle Initial" maxlength="1" required>
<input type="text" name="lastname" placeholder="Lastname" required>
<input type="text" name="address" placeholder="Address" style="width:430px;"required>
<input type="text" name="country" placeholder="Province" required>
<input type="text" name="zipcode" placeholder="ZIP Code" required maxlength="6">
<input type="text" name="mobile" placeholder="Mobile Number" maxlength="11">
<input type="text" name="telephone" placeholder="Telephone Number" maxlength="8">
<input type="email" name="email" placeholder="Email" required>
<input type="password" name="password" placeholder="Password" required>
</center>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" name="signup" value="Sign Up">
<button class="btn btn-danger" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</form>
</div>
<br>
<div id="container">
<div class="nav">
<ul>
<li><a href="index.php"> <i class="icon-home"></i>Home</a></li>
<li><a href="product.php"> <i class="icon-th-list"></i>Product</a></li>
<li><a href="aboutus.php"> <i class="icon-bookmark"></i>About Us</a></li>
<li><a href="contactus.php"><i class="icon-inbox"></i>Contact Us</a></li>
<li><a href="privacy.php"><i class="icon-info-sign"></i>Privacy Policy</a></li>
<li><a href="faqs.php"><i class="icon-question-sign"></i>FAQs</a></li>
</ul>
</div>
<img src="img/contactus.jpg" style="width:1150px; height:250px; border:1px solid #000; ">
<br />
<br />
<div id="content">
<form method="post">
<table style="position:relative; left:25%;">
<tr>
<td style="font-size:20px;">Email:</td><td><input type="email" name="email" placeholder="Email" style="width:400px;"></td>
</tr>
<tr>
<td style="font-size:20px;">Message:</td><td><textarea name="message" style="width:400px; height:300px;" required></textarea></td>
</tr>
<tr>
<td></td><td><button class="btn btn-info" name="send" style="width:300px;"><i class="icon icon-ok icon-white"></i>Submit</button> <a href="index.php"><button class="btn btn-danger" style="width:110px;"><i class="icon icon-remove icon-white"></i>Cancel</button></a></td>
</tr>
</table>
</form>
</div>
<?php
if(isset($POST['send']));
{
@$email = $_POST['email'];
@$message = $_POST['message'];
$conn->query ("INSERT INTO `contact` (email, message) VALUES ('$email', '$message')") or die (mysqli_error());
}
?>
<br />
</div>
<br />
<div id="footer">
<div class="foot">
<label style="font-size:17px;"> Copyrght © </label><p style="font-size:25px;">Online Shoe Store 2021 </p>
</div>
<div id="foot">
<h4>Links</h4>
<ul>
<a href="http://www.facebook.com/OnlineShoeStore"><li>Facebook</li></a>
<a href="http://www.twitter.com/OnlineShoeStore"><li>Twitter</li></a>
<a href="http://www.pinterest.com/OnlineShoeStore"><li>Pinterest</li></a>
<a href="http://www.tumblr.com/OnlineShoeStore"><li>Tumblr</li></a>
</ul>
</div>
</div>
</body>
</html>