#37479 [Opn]: Bug in example on web site
| From: | office at surfport dot com | Date: | Thu, 18 May 2006 05:15:13 +0000 |
| Subject: | #37479 [Opn]: Bug in example on web site | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-31554@lists.php.net to get a copy of this message | ||
ID: 37479
User updated by: office at surfport dot com
Reported By: office at surfport dot com
Status: Open
Bug Type: Website problem
Operating System: Mac OS X 10.46
PHP Version: Irrelevant
New Comment:
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."
Previous Comments:
------------------------------------------------------------------------
[2006-05-17 16:12:03] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37479&edit=1