Jump to content
Larry Ullman's Book Forums

lorne

Members
  • Posts

    2
  • Joined

  • Last visited

lorne's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. The first error was caused by not loading feedback.html through a URL. Now I get this error when I hit submit Notice: Undefined index: title in /Applications/XAMPP/xamppfiles/htdocs/handle_form.php on line 14 Notice: Undefined index: name in /Applications/XAMPP/xamppfiles/htdocs/handle_form.php on line 15 Notice: Undefined index: response in /Applications/XAMPP/xamppfiles/htdocs/handle_form.php on line 16 Notice: Undefined index: comments in /Applications/XAMPP/xamppfiles/htdocs/handle_form.php on line 17 Thank you, , for your comments. You stated that you found this example to be '' and added:
  2. Every time I hit "send my feedback" button I get this. <!DOCTYPE html> <html lang="en"> <head> <meta charest="utf-8"> <title>Feedback Form</title> </head> <body> <?php // Script 3.3 handle_form.php // This page receives the data from feedback.html. // It will receive: title, name, email, response, comments, and submit in $_POST. // Create shorthand versions of the variables: $title = $_POST['title']; $name = $_POST['name']; $response = $_POST['response']; $comments = $_POST['comments']; // Print the received data: print "<p>Thank you, $title $name, for your comments.</p> <p>You stated that you found this example to be '$response' and added:<br>$comments</p>"; ?> </body> </html>
×
×
  • Create New...