-
Notifications
You must be signed in to change notification settings - Fork 2
/
feedback.php
206 lines (178 loc) · 9.08 KB
/
feedback.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?php
error_reporting(0);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Feedback</title>
<meta property="og:image" content="images/gf.jpg">
<meta name="description" content="Feedback of your expreience can help us to improve the platfor for you. Godfather.vip. We’re an India based entertainment agency, providing all the Entertainment content for free, it includs Movies, Web-Seires, TV-Season, TvShows. We are having the collection of the all the Movies, Web-Seires, TV-Season, TvShows of all the studios around the world. We are povidind contents to the all the county. We are amaing to become the best entertainment agency in the world.">
<meta property="og:site_name" content="www.godfather.vip">
<meta property="og:type" content="feedback">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<link rel="canonical" href="https://www.godfather.vip/feedback.php">
<link rel="stylesheet" href="css/themify-icons.css">
<!-- Favicon icon -->
<link rel="icon" type="image/png" sizes="16x16" href="./images/favicon.png">
<!-- Custom Stylesheet -->
<link rel="stylesheet" href="css/style.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-154357661-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-154357661-1');
</script>
<style>
.rate {
float: left;
height: 46px;
padding: 0 10px;
}
.rate:not(:checked) > input {
position:absolute;
top:-9999px;
}
.rate:not(:checked) > label {
float:right;
width:1em;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
font-size:30px;
color:#ccc;
}
.rate:not(:checked) > label:before {
content: '\2605 ';
}
.rate > input:checked ~ label {
color: #ffc700;
}
.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
color: #ffc700;
}
.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
color: #ffc700;
}
</style>
</head>
<body>
<div class="preloader"></div>
<div class="backdrop"></div>
<div class="main-wrapper">
<!-- header wrapper -->
<?php
include_once('header.php');
?>
<!-- header wrapper -->
<div class="faq-page mt-5">
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-8">
<div id="accordion" class="accordion">
<div class="card mb-3">
<div class="card-header" id="headingOne">
<h5 class="mb-0">
<button class="btn btn-link small-text collapse show pl-5 text-left" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
<i class="ti-user"></i>Feedback <span>Please put your valuable feedback to improve your entertainment experiment.</span>
</button>
</h5>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body form-div">
<form method="post">
<div class="row">
<div class="col-sm-6">
<div class="form-group mt-4">
<input name="name" class="form-control text-dark" type="text" placeholder="Name" required>
</div>
</div>
<div class="col-sm-6">
<div class="form-group mt-4">
<input name="email" class="form-control text-dark" type="email" placeholder="Email address" required>
</div>
</div>
<div class=" col-sm-12">
<div class="rate form-group mt-2">
<input class="form-control" type="number" id="rating" name="user_rating" placeholder="Your rating*" required="required" data-validation-required-message="Please enter your rating." style="color: white;padding-left: 25px;border-radius:5px;"/>
<input type="radio" id="star5" onchange="val('5')" name="rate" value="5" />
<label for="star5" title="text"></label>
<input type="radio" id="star4" onchange="val('4')" name="rate" value="4" />
<label for="star4" title="text"></label>
<input type="radio" id="star3" onchange="val('3')" name="rate" value="3" />
<label for="star3" title="text"></label>
<input type="radio" id="star2" onchange="val('2')" name="rate" value="2" />
<label for="star2" title="text"></label>
<input type="radio" id="star1" onchange="val('1')" name="rate" value="1" />
<label for="star1" title="text"></label>
</div>
</div>
<div class="col-sm-12">
<div class="form-group mt-4">
<input name="feedback" class="form-control text-dark" type="text" placeholder="Feedback" required>
</div>
</div>
</div>
<div class="form-group button-block text-center mt-2">
<input name="submit" class="form-btn text-white d-block" type="submit">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include_once('footer.php');
?>
</div>
<script>
function val(e){
document.getElementById("rating").value = e;
}
</script>
<script src="js/plugin.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="js/scripts.js"></script>
</body>
</html>
<?php
if (isset($_POST['submit'])) {
include_once 'database/dbh.inc.php';
$name = addslashes(trim(mysqli_real_escape_string($conn, $_POST['name'])));
$email = trim(mysqli_real_escape_string($conn, $_POST['email']));
$user_rating = trim(mysqli_real_escape_string($conn, $_POST['user_rating']));
$feedback = trim(mysqli_real_escape_string($conn, $_POST['feedback']));
$modify_date = date("Y/m/d");
$sql = mysqli_query($conn, "INSERT INTO `feedback`( `name`, `email`, `review`, `rating`, `modify_date`) VALUES ('$name', '$email', '$feedback', '$user_rating', '$modify_date') ");
if ($sql == true) {
?>
<script type="text/javascript">
window.location = "index.php?contact=success";
</script>
<?php
}else{
?>
<script type="text/javascript">
alert("There is some problem, Please try Again !!!");
window.location = "feedback.php?error";
</script>
<?php
}
}
?>