Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17508 программистов и 1863 робота. Сейчас ищут 1832 программиста ...
constructor HTML_QuickForm_select()
Вернуться к: Standard HTML elements
constructor HTML_QuickForm_select()
constructor HTML_QuickForm_select() – Class constructor
Synopsis
require_once 'HTML/QuickForm/select.php';
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.
Parameter
- string $elementName
-
Select name attribute
- mixed $elementLabel
-
Label(s) for the select
- mixed $options
-
Data to be used to populate options
- mixed $attributes
-
Either a typical HTML attribute string or an associative array
Throws
throws no exceptions thrown
See
see load().
Note
since 1.0
This function can not be called statically.
Example
<?php
$select = $quickform->createElement(
'select', 'selectname',
'Label for select',
array('fr' => 'French', 'de' => 'German', 'en_GB' => 'British English'),
array('id' => 'selectname', 'onchange' => '...'));
);
?>
Вернуться к: Standard HTML elements