Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 22555 программистов и 1575 роботов. Сейчас ищут 1744 программиста ...

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

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware