php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37479 Bug in example on web site
Submitted: 2006-05-17 16:12 UTC Modified: 2006-05-18 10:42 UTC
From: office at surfport dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Mac OS X 10.46
Private report: No CVE-ID: None
 [2006-05-17 16:12 UTC] office at surfport dot com
Description:
------------
Hi. Apparent web site bug in example "Dealing with forms" 2-6 
and 2-7. I have copied-and-pasted both sets of code, creating 
two pages. When I enter data in the first and hit "submit" the 
second page does not output as expected. Instead, it outputs 
the actual code. BBEdit 8.24 for page construction, Safari 
2.03 for display.

Cheers,

grh

Next field is the code on my two pages. Only the first gives 
me an expected result.

Reproduce code:
---------------
  
<form action="action.php" method="post">
<p>Your name: <input type="text" name="name" /></p>
<p>Your age: <input type="text" name="age" /></p>
<p><input type="submit" /></p>
</form>
	  

---------------------------------------------------------

Hi <?php echo $_POST['name']; ?>.
You are <?php echo $_POST['age']; ?> years old.

Expected result:
----------------
As reported in your example

Actual result:
--------------
Hi <?php echo $_POST['name']; ?>.
You are <?php echo $_POST['age']; ?> years old.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-18 05:15 UTC] office at surfport dot com
OK I'm an idiot. I now see what must be done to get the script 
to run (upload). But this is a site for tuition and I think we 
novices can easliy miss what, to you, can be "obvious."
 [2006-05-18 10:42 UTC] bjori@php.net
If you have any suggestions how to improve the 
documentation, feel free to share them.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 21:00:02 2026 UTC