-
Notifications
You must be signed in to change notification settings - Fork 2
/
feedback.php
47 lines (43 loc) · 1.82 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
$title = 'Success';
require_once 'includes/header.php';
require_once './db/conn.php';
require './includes/sanitise.php';
if(isset($_POST['submit']))
{
//extract values from the $_POST array
$feedname = test_input($_POST['feedback_name']);
$feedmail = test_input($_POST['feedback_mail']);
$experience = test_input($_POST['star']);
$fren = test_input($_POST['star2']);
$ts = date('Y-m-d H:i:s');
$appr = test_input($_POST['rating']);
$feedText = test_input($_POST['feedText']);
$event_id = test_input($_POST['event_id']);
//Call function to insert and track if success or not
$isSuccess = $crud->insertFeedbacks($feedname,$feedmail,$experience,$fren,$ts,$appr,$feedText,$event_id);
if($isSuccess)
{ ?>
<div class="jumbotron text-center">
<h1 class="display-3">Thank You!</h1>
<p class="lead">For taking out your time to fill the feedback and we hope to bring many more succesful events with your help.</p>
<hr>
<p>
Follow us on the social media<br/>
<a href="https://www.instagram.com/ojaswilpu/?hl=en" target="_blank"><i class="bi-facebook" style="font-size:2em;"></i></a>
<a href="https://www.facebook.com/ojaswilpuSOC/" target="_blank"><i class="bi-instagram" style="font-size:2em;"></i></a>
<a href="https://www.linkedin.com/in/ojaswi-lpu-aa90b91b6/" target="_blank"><i class="bi-linkedin" style="font-size:2em;"></i></a>
</p>
<p class="lead">
<a class="btn btn-primary btn-sm" href="./index.php" role="button">Continue to homepage</a>
</p>
</div>
<?php include 'includes/successmessage.php';
}
else
{
include 'includes/errormessage.php';
}
}
include './includes/footer.php';
?>