-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.php
191 lines (157 loc) · 6.7 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?php
require_once "conn.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact - E-commerce WEB</title>
<!--Bootstrap Style Link-->
<link rel="stylesheet" href="CSS/bootstrap.min.css">
<!--Custom Style Link-->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="productStyle.css">
<link rel="stylesheet" href="product1.css">
<link rel="stylesheet" href="cart.css">
<link rel="stylesheet" href="account.css">
<!--Font Awesome Style Link-->
<link rel="stylesheet" href="CSS/all.css">
<!--Google Font Link-->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap" rel="stylesheet">
</head>
<body>
<!--Top bar-->
<!-- header part code -->
<?php
include_once 'header.php';
?>
<div class="container-fluid pt-3 pb-3" style="background-color: rgb(255,227,225);">
<div class="container">
<!--Section: Contact v.2-->
<section class="mb-4">
<!--Section heading-->
<h2 class="h1-responsive font-weight-bold text-center my-4">Contact us</h2>
<!--Section description-->
<p class="text-center w-responsive mx-auto mb-5">Do you have any questions? Please do not hesitate to contact us directly.</p>
<div class="row">
<!--Grid column-->
<div class="col-md-9 mb-md-0 mb-5">
<form id="contact-form" href="#contact_modal" method="post" name="contact-form">
<!--Grid row-->
<div class="row">
<!--Grid column-->
<div class="col-md-6">
<div class="md-form mb-0">
<input type="text" id="name" name="name" class="form-control">
<label for="name" class="">Your name</label>
</div>
</div>
<!--Grid column-->
<!--Grid column-->
<div class="col-md-6">
<div class="md-form mb-0">
<input type="text" id="email" name="email" class="form-control">
<label for="email" class="">Your email</label>
</div>
</div>
<!--Grid column-->
</div>
<!--Grid row-->
<!--Grid row-->
<div class="row">
<div class="col-md-12">
<div class="md-form mb-0">
<input type="text" id="subject" name="subject" class="form-control">
<label for="subject" class="">Subject</label>
</div>
</div>
</div>
<!--Grid row-->
<!--Grid row-->
<div class="row">
<!--Grid column-->
<div class="col-md-12">
<div class="md-form">
<textarea type="text" id="message" name="message" rows="2" class="form-control md-textarea"></textarea>
<label for="message">Your message</label>
</div>
</div>
</div>
<div class="text-center text-md-left">
<button type="submit" id="send" class="btn btn-primary" name="submit" data-toggle="modal">Send</button>
</div>
</form>
<!--Grid row-->
<div class="status"></div>
</div>
<!--Grid column-->
<!--Grid column-->
<div class="col-md-3 text-center">
<ul class="list-unstyled mb-0">
<li><a href="https://www.google.com/maps/place/J+K+Puram,+Basantgarh,+Rajasthan+307019/@24.6941849,72.9957175,15z/data=!3m1!4b1!4m5!3m4!1s0x3942cb5b48eb9ccd:0x153b49d323e55fb8!8m2!3d24.6938179!4d73.0036295" class="text-decoration-none">
<i class="fas fa-map-marker-alt fa-2x" style="color: rgb(218, 83, 49);"></i>
<p class="text-dark">JK Puram, Sirohi 307019, INDIA</p>
</a>
</li>
<li><a href="tel:+91 7296909049" class="text-decoration-none">
<i class="fas fa-phone mt-4 fa-2x" style="color: rgb(218, 83, 49);"></i>
<p class="text-dark">+91 7296909049</p>
</a>
</li>
<li><a href="mailto: bhargavsonagara1776@gmail.com" class="text-decoration-none">
<i class="fas fa-envelope mt-4 fa-2x" style="color: rgb(218, 83, 49);"></i>
<p class="text-dark">bhargavsonagara1776@gmail.com</p>
</a>
</li>
</ul>
</div>
<!--Grid column-->
</div>
</section>
<!--Section: Contact v.2-->
</div>
</div>
<!--Modal-->
<?php
include_once 'modal.php';
?>
<!--Footer-->
<?php
include_once 'footer.php';
?>
<!--jquery Script Link-->
<script src="js/jquery-3.5.1.js"></script>
<!-- Ajax Code Part by Gaurav-->
<script>
$("document").ready(function () {
$("#send").on("click",function (e) {
e.preventDefault();
$.ajax({
url:"message.php",
data:$('#contact-form').serialize(),
method:"POST",
success: function (data) {
if(data == 1)
{
$("#contact-form").trigger("reset");
alert("message-sent");
return true;
}
else
{
alert(data);
return false;
}
}
})
});
});
</script>
<!--Popper Script Link-->
<script src="js/popper.js"></script>
<!--Bootstrap JS Script Link-->
<script src="js/bootstrap.min.js"></script>
</body>
</html>