-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
163 lines (142 loc) · 7.15 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
<?php
session_start();
?>
<?php
include 'partials\_dbconnect.php';
$alert = false;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$q_name = $_POST['q_name'];
$q_emial = $_POST['q_email'];
$q_phone = $_POST['q_phone'];
$q_type = $_POST['q_type'];
$q_des = $_POST['q_des'];
$querysql = "INSERT INTO `feedback` (`q_date`, `q_name`, `q_email`, `q_phone`, `q_type`, `q_des`) VALUES ( current_timestamp(), '$q_name', '$q_emial', '$q_phone', '$q_type', '$q_des')";
$queryresult = mysqli_query($conn, $querysql);
if ($queryresult) {
$alert = true;
} else {
die(mysqli_error($conn));
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="MYMECHANIC_CSS/style.css">
<title>MyMechanic | contact us</title>
</head>
<body>
<!-- include navbar start -->
<?php include 'partials\_navbar.php'; ?>
<!-- include navbar End -->
<!-- service Heading Start -->
<div class="page-header" style="margin-bottom: 0px;">
<div class="container">
<div class="row">
<div class="col-12">
<h2>Contact Us <i class="bi bi-phone-vibrate"></i></h2>
</div>
</div>
</div>
</div>
<!-- Service Heading End -->
<?php
if ($alert)
echo '<div class="alert alert-success alert-dismissible fade show my-1 mx-1" role="alert">
<i class="bi bi-exclamation-triangle-fill" style="font-size:20px"> </i><strong>We got Your message!! </strong>
We will send you a responce if we find your query is important. Thank You!!
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>';
?>
<!-- contact us start -->
<div class="location">
<div class="container">
<div class="row">
<div class="col-lg-7">
<div class="section-header text-left">
<h2 style="color:black;">Our Head-Office & Customer Care</h2>
</div>
<div class="row">
<div class="col-md-6">
<div class="location-item">
<div class="location-text">
<h3><i class="bi bi-building"></i> Head-Office</h3>
<p><i class="bi bi-arrow-right-short"></i>201, gallerira Avenue</p>
<p>Bapunagar, Ahmedabad-360008</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="location-item">
<div class="location-text">
<h3><i class="bi bi-person-check-fill"></i> Customer Care</h3>
<p><i class="bi bi-arrow-right-short"></i>501, Pramukh Avenue</p>
<p>Navrangpura, Ahmedabad-360088</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="location-item">
<div class="location-text">
<h3><i class="bi bi-telephone-forward-fill"></i> Contact Number</h3>
<p><i class="bi bi-arrow-right-short"></i>+91 8905193172</p>
<p><i class="bi bi-arrow-right-short"></i>+012 345 6789</p>
</div>
</div>
</div>
<div class="col-md-6">
<div class="location-item">
<div class="location-text">
<h3><i class="bi bi-envelope"></i> E-Mail</h3>
<p><i class="bi bi-arrow-right-short"></i>[email protected]</p>
<p><i class="bi bi-arrow-right-short"></i>mymechanic.help.in</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-5">
<div class="location-form">
<h3>Send Your Queries</h3>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method = "post">
<div class="control-group">
<input type="text" class="form-control" maxlength="30" placeholder="Name" name="q_name" required="required" />
</div>
<div class="control-group">
<input type="email" class="form-control" maxlength="30" placeholder="Email" name="q_email" required="required" />
</div>
<div class="control-group">
<input type="text" maxlength="10" pattern="[0-9]{10}" oninvalid="this.setCustomValidity('mobile number must be 10 digits')" onchange="this.setCustomValidity('') " class="form-control" placeholder="Phone" name="q_phone" required="required" />
</div>
<div class="control-group">
<select class="form-select" name="q_type" aria-label="Default select example">
<option selected value="Customer">Customer</option>
<option value="Garage Owner">Garage Owner</option>
<option value="Visitor">Visitor</option>
</select>
</div>
<div class="control-group">
<textarea class="form-control" maxlength="100" name="q_des" placeholder="Describe Your Queries" required="required"></textarea>
</div>
<div>
<button class="btn btn-custom" type="submit">Send</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- contact us End -->
<!-- Footer Start -->
<?php include 'partials/_footer.php'; ?>
<!-- Footer End -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="MYMECHANIC_JS/mechanic.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
</body>
</html>