#37479 [NEW]: Bug in example on web site

From: Date: Wed, 17 May 2006 16:12:03 +0000
Subject: #37479 [NEW]: Bug in example on web site
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-31545@lists.php.net to get a copy of this message
From: office at surfport dot com Operating system: Mac OS X 10.46 PHP version: Irrelevant PHP Bug Type: Website problem Bug description: Bug in example on web site 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 bug report at http://bugs.php.net/?id=37479&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37479&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37479&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37479&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37479&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37479&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37479&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37479&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37479&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37479&r=support Expected behavior: http://bugs.php.net/fix.php?id=37479&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37479&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37479&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37479&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37479&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37479&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37479&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37479&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37479&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37479&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37479&r=mysqlcfg

« previous php.mirrors (#31545) next »