-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontact.php
More file actions
84 lines (66 loc) · 2.17 KB
/
contact.php
File metadata and controls
84 lines (66 loc) · 2.17 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE HTML>
<!--
Alpha by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Contact</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<?php include("LoggedInHeader.php"); ?>
<?php include("library.php"); ?>
<?php
session_start();
if(!isset($_SESSION['logged_in'])){
header("Location:SignUp.php");
}
if(($_SERVER["REQUEST_METHOD"] == "POST"))
{
echo "<p style=text-align:center;padding-top:15%>Thank you for your feedback!</p>";
$uemail = $_SESSION['email'];
$rnote = $_POST['note'];
$result = $db->prepare("INSERT INTO Request (uemail, rnote) VALUES (:uemail, :rnote)");
$result->bindParam(':uemail', $uemail);
$result->bindParam(':rnote', $rnote);
$result->execute();
}
?>
<body class="is-preload">
<div id="page-wrapper">
<!-- Header -->
<section class="box special">
<header class="major">
<h2>Tell us about your experience!</h2>
</header>
<?php
?>
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="POST" >
<h5 class="text-secondary" style="padding: 0.5rem;"> <b>Email:</b> <?php echo $_SESSION['email'];; ?></h5>
Help us improve Hoo's Pizza!
<textarea id="note" name="note" rows="8" cols="25">
</textarea>
<input type="submit" name = "Submit" value="Submit" style="margin:15px;">
</form>
<!--<span class="image featured"><img src="images/pic01.jpg" alt="" /></span>-->
</section>
<?php include("footer.php"); ?>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<?php
function button_select()
{
}
?>
</body>
</html>