#25321 [NEW]: HTML/Form.php - Hidden Fields after </form>

From: Date: Sat, 30 Aug 2003 15:30:48 +0000
Subject: #25321 [NEW]: HTML/Form.php - Hidden Fields after </form>
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20883@lists.php.net to get a copy of this message
From: nohn@php.net Operating system: Linux PHP version: 4.3.3 PHP Bug Type: PEAR related Bug description: HTML/Form.php - Hidden Fields after </form> Description: ------------ Hidden Fields are put behind the </form>-Tag Reproduce code: --------------- $form_view = new HTML_Form($_SERVER['PHP_SELF'], "get"); $form_view->addHidden("action", "editUpdateDB"); $form_view->addText("id", "Amazon-ASIN", $rsCD["id"]); $form_view->addText("interpret", "Interpret", $rsCD["interpret"]); $form_view->addText("titel", "Titel", $rsCD["titel"]); $form_view->addText("spielzeit", "Spielzeit (mm.ss)", $rsCD["spielzeit"]); $form_view->addText("veroeffentlichung", "Veröffentlichung (jjjj-mm-dd)", $rsCD["veroeffentlichung"]); $form_view->addSubmit("submit", "Daten aktualisieren"); $form_view->display(); Expected result: ---------------- <form action="index.php" method="get"> <input type="hidden" name="action" value="editUpdateDB" /><input type="hidden" name="_fields" value="action:id:interpret:titel:spielzeit:veroeffentlichung:submit" /> <table> <tr> <th align="right">Amazon-ASIN</th> <td><input name="id" value="B000069CWE" size="20" /></td> </tr> <tr> <th align="right">Interpret</th> <td><input name="interpret" value="Linkin Park" size="20" /></td> </tr> <tr> <th align="right">Titel</th> <td><input name="titel" value="Reanimation" size="20" /></td> </tr> <tr> <th align="right">Spielzeit (mm.ss)</th> <td><input name="spielzeit" value="61.02" size="20" /></td> </tr> <tr> <th align="right">Veröffentlichung (jjjj-mm-dd)</th> <td><input name="veroeffentlichung" value="2002-07-29" size="20" /></td> </tr> <tr> <td>&nbsp;</td> <td><input name="submit" type="submit" value="Daten aktualisieren" /></td> </tr> </table> </form> Actual result: -------------- <form action="index.php" method="get"> <table> <tr> <th align="right">Amazon-ASIN</th> <td><input name="id" value="B000069CWE" size="20" /></td> </tr> <tr> <th align="right">Interpret</th> <td><input name="interpret" value="Linkin Park" size="20" /></td> </tr> <tr> <th align="right">Titel</th> <td><input name="titel" value="Reanimation" size="20" /></td> </tr> <tr> <th align="right">Spielzeit (mm.ss)</th> <td><input name="spielzeit" value="61.02" size="20" /></td> </tr> <tr> <th align="right">Veröffentlichung (jjjj-mm-dd)</th> <td><input name="veroeffentlichung" value="2002-07-29" size="20" /></td> </tr> <tr> <td>&nbsp;</td> <td><input name="submit" type="submit" value="Daten aktualisieren" /></td> </tr> </table> <input type="hidden" name="action" value="editUpdateDB" /><input type="hidden" name="_fields" value="action:id:interpret:titel:spielzeit:veroeffentlichung:submit" /></form> -- Edit bug report at http://bugs.php.net/?id=25321&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25321&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25321&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25321&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25321&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25321&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25321&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25321&r=support Expected behavior: http://bugs.php.net/fix.php?id=25321&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25321&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25321&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25321&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25321&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25321&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25321&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25321&r=gnused

« previous php.pear.dev (#20883) next »