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.4 - handle_form.php #2
10.
11. ini_set ('display_errors', 1); // Let me learn from my mistakes!
12.
13. // This page receives the data from feedback.html.
14. // It will receive: title, name, email, response, comments, and submit in $_POST.
15. $title = $_POST['title'];
16. $name = $_POST['name'];
17. $response = $_POST['response'];
18. $comments = $_POST['comments'];
19.
20. // Print the received data:
21. print "<p>Thank you, $title $name, for your comments.</p>
22. <p>You stated that you found this example to be '$response' and added:<br />$comments</p>";
23.
24. ?>
25. </body>
26. </html>