-
Notifications
You must be signed in to change notification settings - Fork 1
/
feedback.php
47 lines (42 loc) · 1.6 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
<?php
include "server.php";
include "dummy.php"
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feedback</title>
<link rel="stylesheet" href="feedback.css">
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@800&family=Ubuntu:wght@300&display=swap"
rel="stylesheet">
</head>
<body>
<div class="form-container">
<form action="feedback.php" method="post">
<h3>Give Your Feedback</h3>
<label for="email">Email</label>
<input type="email"placeholder="e-mail" name="email" id="email">
<label for="Phone Number">Phone number</label>
<input type="text" name="phonenumber"placeholder="Phone-number" id="phonenumber">
<label for="Order ID">Order ID</label>
<input type="text" name="OrderID"placeholder="OrderID" id="OrderID">
<label for="Your Message">Your Message</label>
<textarea name="message" required id="message" cols="20" rows="8" placeholder="Enter your message here"></textarea>
<br><br><br> <center><button type="submit" value="submit" class="bttn" name="feedback_user">Submit</button>
</center>
</form>
</div>
<div>
<?php
if(isset($_POST['feedback_user']))
{
$sql="INSERT INTO feedback VALUES('$_SESSION[firstName]','$_POST[email]','$_POST[phonenumber]','$_POST[message]', '$_POST[OrderID]') ;";
mysqli_query($db,$sql);
}
?>
</div>
</body>
</html>