-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback.php
53 lines (49 loc) · 1.28 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
51
52
53
<?php
/*
Author: Created by Mathew Baltes
Updated: August 2, 2011
Description: This script is just a simple feedback, nothing special.
Intellectual Copyright established May 15th, 2011
*/
require("./include/header.php");
echo "
<hr width='100%'>
<div align='center'>
Feedback Form
<hr width='300'>
<br>
<table width='98%' border='0'>
<tr><td>";
if ($_POST['submitted'] == 0)
{
echo "
<div align='center'>
<form method='POST' action='feedback.php'>
Email: <input type='text' name='email' size='19'><br><br>Comments:
<br>
<textarea rows='9' name='message' cols='30'></textarea>
<br>
<br>
<input type='hidden' name='submitted' value='1'>
<input type='submit' value='Submit' name='submit' class='subButton'>
</form>
<br>
</div>";
}
else
{
$to = "[email protected]";
$subject = "Feedback";
$name = 'Anonymous';
$email = $_POST['email'];
$message = $_POST['message'];
$body = "E-Mail: $_POST[email]\nMessage:\n $message";
echo "<div align='center'><h4 class='valid'>Feedback submitted.</h4><br><h3>Thank you for sending us your feedback!</h3><br></div>";
mail($to, $subject, $body);
}
echo "
</td></tr>
</table>
</div>";
require("./include/footer.php");
?>