html_selectBuilder for HTML drop-down menus
Syntax:
// create instance. arguments are used to set attributes of select-tag
$select = new html_select(array('name' => 'fieldname'));
// add one option
$select->add('Switzerland', 'CH');
// add multiple options
$select->add(array('Switzerland','Germany'), array('CH','DE'));
// generate pulldown with selection 'Switzerland' and return html-code
// as second argument the same attributes available to instanciate can be used
print $select->show('CH');
Located in /html.php (line 502)
html | --html_select
mixed
$allowed
= array('name','size','tabindex','autocomplete',
mixed
$options
= array() (line 505)
Inherited from html
html::$attrib
html::$common_attrib
html::$containers
html::$content
html::$lc_tags
add (line 515)
Add a new option to this drop-down
show (line 534)
Get HTML code for this object
Inherited From html
html::__construct()
html::a()
html::attrib_string()
html::br()
html::div()
html::iframe()
html::img()
html::label()
html::p()
html::show()
html::span()
html::tag()
Documentation generated on Tue, 04 Oct 2011 22:55:23 +0200 by phpDocumentor 1.4.3