-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
43 lines (39 loc) · 1.24 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
<?php
include 'dbconnection.php';?>
<?php if($_SERVER['REQUEST_METHOD']=='POST')
{
$query="insert into feedback(name,email,subject,msg) values('".$_POST['userName']."','".$_POST['userEmail']."','".$_POST['usersubject']."','".$_POST['userMsg']."')";
$result=mysqli_query($con,$query);
var_dump($query);
var_dump($result);
if($result){
echo "<script>alert('Your Response has been Successfully recorded!')</script>";
header('location:index.php' );
}
else {
echo "<script>alert('Something went wrong!')</script>";
}
}
else {
include 'contact-body.php';
include 'footer.php';
}?>
<!--Scripts-->
<script type="text/javascript">
$(document).ready(function() {
$().UItoTop({
easingType: 'easeOutQuart'
});
});
</script>
<a href="#" id="toTop"> </a>
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script src="js/jquery.openCarousel.js" type="text/javascript"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/navigation.js"></script>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/jquery.mobile.custom.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>