#23191 [NEW]: [QuickForm] Select box type problems
| From: | jellybob@php.net | Date: | Mon, 14 Apr 2003 01:50:14 +0000 |
| Subject: | #23191 [NEW]: [QuickForm] Select box type problems | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-15152@lists.php.net to get a copy of this message | ||
From: jellybob@php.net
Operating system: Debian 3.0
PHP version: 4.3.1
PHP Bug Type: PEAR related
Bug description: [QuickForm] Select box type problems
When using a select element in a Quickform, if you later try to retrieve
the value with getElementValue, it returns it as the string Array (not as
an Array, but just the string).
Example:
$form = new HTML_QuickForm('example', 'post');
$select = &$form->addElement('select', 'bob');
$select->addOption('option1', '1');
$select->addOption('option2', '2');
$select->addElement('submit', null, 'Submit');
if ($form->validate) {
print_r($form->getElementValue('bob');
}
Outputs:
Array
--
Edit bug report at http://bugs.php.net/?id=23191&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23191&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23191&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23191&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23191&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23191&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23191&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23191&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23191&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23191&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23191&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23191&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23191&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23191&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23191&r=gnused