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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nohn@php.net
New email:
PHP Version: OS:

 

 [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 21 11:01:30 2024 UTC