php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25321 HTML/Form.php - Hidden Fields after </form>
Submitted: 2003-08-30 10:30 UTC Modified: 2003-08-30 10:31 UTC
From: nohn@php.net Assigned:
Status: Not a bug Package: PEAR related
PHP Version: 4.3.3 OS: Linux
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 - 12 = ?
Subscribe to this entry?

 
 [2003-08-30 10:30 UTC] nohn@php.net
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>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-30 10:31 UTC] nohn@php.net
sorry...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 16:02:59 2024 UTC