PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #427

addOption does not work properly

Details

Submitted2003-12-15 16:04 UTC
Fromshadoc at wanadoo dot fr
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.4
OSWindows 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.