-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback.php
48 lines (45 loc) · 1.06 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
<?php
include 'classes/session.php';
echo "<b><br><br>";
Session :: sessionStart();
$order_id= $_GET['id'];
if(@Session::get_session('email')){
include("nav.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>contact</title>
<style type="text/css">
form{
max-width:500px;
margin:auto;
margin-top:100px;
}
form textarea{
resize:none;
width:100%;
height:200px;
text-indent:3px;
}
</style>
</head>
<body>
<form action="" method="post" class="bg-light p-3">
<h2 class="text-center text-capitalize py-3">feedback</h2>
<textarea placeholder="enter message" name="message" required=""></textarea>
<input type="submit" value="send" name="feedback" class="btn btn-dark my-3" style="width:100px; display:block; margin:auto;">
</form>
</body>
</html>
<?php
if(isset($_POST['feedback'])){
$message_content = $_POST['message'] ;
$user = new customer();
$user->send_feedback($order_id, $message_content);
}
}
else{
include 'login.php';
}
?>