-
Notifications
You must be signed in to change notification settings - Fork 1
/
feedbackpost.php
52 lines (40 loc) · 1.28 KB
/
feedbackpost.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
<html>
<head>
<title>Feedback submitted</title>
</head>
<body>
<?php
include 'nvgbar.php';
include 'connect.php';
echo "<br><br>";
$mail=$_POST['feedback_mail'];
$descr=$_POST['feedback_descr'];
$db=new PDO("mysql:host=localhost;dbname=techon","root","");
if($db)
{
$sql = "INSERT INTO
feedback(feedback_mail,
feedback_descr)
VALUES(?,?)";
$test=$db->prepare($sql);
$test->bindParam(1,$mail);
$test->bindParam(2,$descr);
if($test->execute())
{
echo "<br><br><p style='font-size:34px; text-align:center; font-weight:bold;'>Your Feedback have been received</p>";
echo '<p style="text-align:center; font-size:19px; font-weight:bold; font-decoration:none;"><a href="index.php">TechOn.com </a></p>';
}
else
{
echo "error";
}
}
else
{
echo "error";
}
echo "<br><br><br><br>";
include 'footer.php';
?>
</body>
</html>