forked from heroku/heroku-buildpack-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.php
32 lines (31 loc) · 821 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<h1>Feedback</h1>
<form action="" method="post">
<input type="text" name="email" placeholder="Email">
<br>
<textarea cols='40' rows='15' placeholder="Feedback" name="feedback"></textarea>
<br>
<input type="submit" name="feedbackSubmit" value="Send">
</form>
<?php
include "../modal/function.php";
#Form insertion
$email = $feedback = "";
if (isset($_POST['email'])) {
$email = $_POST['email'];
}
if (isset($_POST['feedback'])) {
$feedback = $_POST['feedback'];
}
queryInsert("feedback", array('email', 'feedback'),array($email, $feedback));
if (isset($_POST['feedbackSubmit'])) {
echo "<script>window.close();</script>";
}
?>
</body>
</html>