aboutsummaryrefslogtreecommitdiff
path: root/view/feedback.php
blob: 73b0241c9668f7a07373699d40520320057c0fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

$feedback = new Feedback();
$info = $_POST;

if(!$feedback->validate($info)) {
	echo $tpl->render(array(
		'page' => 'feedback',
		'title' => 'Give Feedback',
		'room' => null,
	));
}
else
{
	$feedback->store($info);
	echo 1;
}