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 )

Description

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' => '...'));
);
?>
Class to dynamically create an HTML SELECT (Previous) Adds a new OPTION to the SELECT (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.