void constructor HTML_QuickForm_select::HTML_QuickForm_select (
string $elementName
= null
, mixed $elementLabel
= null
, mixed $options
= null
, mixed $attributes
= null
)
This package is not documented yet.
$elementName
Select name attribute
$elementLabel
Label(s) for the select
$options
Data to be used to populate options
$attributes
Either a typical HTML attribute string or an associative array
throws no exceptions thrown
see load().
since 1.0
This function can not be called statically.
<?php
$select = $quickform->createElement(
'select', 'selectname',
'Label for select',
array('fr' => 'French', 'de' => 'German', 'en_GB' => 'British English'),
array('id' => 'selectname', 'onchange' => '...'));
);
?>