Home » HTML » HTML_QuickForm » Bug #427
addOption does not work properly
Details
| Submitted | 2003-12-15 16:04 UTC |
|---|---|
| From | shadoc at wanadoo dot fr |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.3.4 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2003-12-15 16:04 UTC] shadoc at wanadoo dot fr
Description:
------------
When using addOption on a select object, the option does not appear properly.
The select is visible and has a drop down window.
Reproduce code:
---------------
<?php
include_once('HTML/Quickform.php');
require_once ('HTML/QuickForm/select.php');
$form = new HTML_QuickForm('frmTest');
$select = $form->addelement('select', 'id', 'Name');
$select->addOption("MyName", "MyName");
$form->display();
?>
Expected result:
----------------
We expect to see the option.
Actual result:
--------------
No option visible
[2003-12-15 22:54 UTC] shadoc at wanadoo dot fr
Works with this trick ! Thanks.