-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback.php
50 lines (45 loc) · 1.7 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
49
50
<!DOCTYPE html>
<html>
<head>
<title>FlowOverStack</title>
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 800px)" href="mobilestyles.css" >
<link rel="stylesheet" type="text/css" media="screen and (min-device-width: 800px)" href="styles.css" />
</head>
<body>
<?php include 'includes/feedback_DB.php'; ?>
<div class="container">
<div class="menu">
<img class="logo" src="images/FlowOverStackLogo.png" alt="logo" height="53" width="300" />
<a class="active" href="./">Home</a>
<a href="feedback.php">Feedback</a>
<a href="about.php">About</a>
<button id="btnAsk" onclick="btnAskOnQuestionPage()">Ask a question</button>
<form method="GET">
<input class="search" type="text" name="search" placeholder="Search..." onKeyPress="return checkSubmit(event)"></input>
</form>
</div>
</div>
<script>
function btnAskOnQuestionPage() {
window.location.href='./';
}
function checkSubmit(e) {
if(e && e.keyCode == 13) {
document.forms[0].submit();
}
}
</script>
<?php if (isset($_GET['search'])) {
echo "<script>window.location.href ='./?search=" . $_GET['search'] . "'</script>";
}
?>
<div id="feedbackFormContainer">
<form method='GET' class='feedbackForm'>
<div class="sendFeedbackTextareaContainer">
<label class="feedbackTextareaLabel">Feedback: </label>
<textarea rows="7" cols="103" maxlength="2000" name="feedback" class="sendFeedbackTextarea" required></textarea>
</div>
<input type="submit" value="Send Feedback" class="SendFeedbackSubmit" >
</form>
</body>
</html>