1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4. <head>
5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6. <title>Your Feedback</title>
7. </head>
8. <body>
9. <?php // Script 3.5 - handle_form.php #3
10.
11. ini_set ('display_errors', 1); // Let me learn from my mistakes!
12. error_reporting (E_ALL | E_STRICT); // Show all possible problems!
13.
14. // This page receives the data from feedback.html.
15. // It will receive: title, name, email, response, comments, and submit in $_POST.
16. $title = $_POST['title'];
17. $name = $_POST['name'];
18. $response = $_POST['response'];
19. $comments = $_POST['comments'];
20.
21. // Print the received data:
22. print "<p>Thank you, $title $name, for your comments.</p>
23. <p>You stated that you found this example to be '$response' and added:<br />$comments</p>";
24.
25. ?>
26. </body>
27. </html>