-
Notifications
You must be signed in to change notification settings - Fork 1
/
feedback.php
43 lines (26 loc) · 1.17 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
<?php
require "includes/common.php";
if(isset($_POST['message']))
{
$lstname = '';
$fstname = mysqli_real_escape_string($con,$_POST['fstname']);
$mail = mysqli_real_escape_string($con,$_POST['mail']);
$message = mysqli_real_escape_string($con,$_POST['message']);
$q="INSERT INTO `feedback` (`fname`, `mail`, `message`) VALUES ('$fstname', '$mail', '$message')";
$reslt=mysqli_query($con,$q) or die(mysqli_error($con));
}
echo '<center><h2><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>Thanks for your valuable feedback</h2>
<h4>Back to <button id="myButton" style="background-color:tomato; cursor: pointer;" >Home</button> </h4>
</center>
<script type="text/javascript">
document.getElementById("myButton").onclick = function () {
parent.location.href = "index.php";
};
</script>';
/*echo "<script>$(document).ready(function () {
// Handler for .ready() called.
$('html, parent.body').animate({
scrollTop: $('#what').offset().top
}, 'slow');
}); </script> ";*/
?>