Jump to content



Photo

Chapter 3 On Page 64 Related Error Result


  • Please log in to reply
26 replies to this topic

#21 jeffreader

jeffreader

    Newbie

  • Members
  • Pip
  • 12 posts

Posted 12 April 2017 - 7:33 PM

On page 128, Chapter 6:

 

I am lost.  Please rephrase it with plain English for me.  I rather to wait to hear from you before I put that program on my CodeRunner.


Edited by jeffreader, 12 April 2017 - 7:34 PM.

  • 0

#22 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4749 posts
  • LocationState College, PA (USA)

Posted 12 April 2017 - 7:40 PM

Could you elaborate on what you're lost on and what you'd like me to rephrase? 


  • 0

#23 jeffreader

jeffreader

    Newbie

  • Members
  • Pip
  • 12 posts

Posted 12 April 2017 - 8:01 PM

Could you elaborate on what you're lost on and what you'd like me to rephrase? 

I can't fresh my mind.  The var1 to var3 have different and also empty().  It is same thing for isset(). 

 

Actually, I thought that there is only one var that something to clear out for one example but it has three examples (i.e. var1, var2, var3).

I am not sure why do I have to know about them.


  • 0

#24 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4749 posts
  • LocationState College, PA (USA)

Posted 19 April 2017 - 3:49 PM

So the examples are just trying to demonstrate what it means to be "set", "empty", and "numeric" and uses a couple of different values--represented by variables--to do so. 


  • 0

#25 lorne

lorne

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 June 2017 - 2:33 PM

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>


Edited by lorne, 11 June 2017 - 2:38 PM.

  • 0

#26 lorne

lorne

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 June 2017 - 6:13 PM

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:


  • 0

#27 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4749 posts
  • LocationState College, PA (USA)

Posted 14 June 2017 - 2:48 PM

Just to confirm, you see that when you load feedback.html through a URL, fill out the form completely, and then submit the form?


  • 1