WIKINDX METHODS

Method:
selectFBoxValueMultiple()

Class:
FORM

Method Call:
include_once("core/html/FORM.php");
STRING FORM::selectFBoxValueMultiple(STRING: $label, STRING: $name, ASSOC_ARRAY: $options, [INT: $size, INT: $override]);

Description:
Returns a form input element of type select (multiple) with $options being an associative array the first option being pre-selected. $size is 3 by default. If $override is set, this overrides the select box character limit set by the user.

Unlike selectFBox(), this method sets the value parameter of the option tag to the key of the associative array $options.

Usage:
$label is printed a line above the select box. To not print $label, set it to FALSE.

If $options is:

	array(
		"en"	=>	"English",
		"de"	=>	"Deutsch",
		"ts"	=>	"Tsetswana",
		);
then
	$pString = FORM::selectFBoxValueMultiple(FALSE, "language", $options);
would return the string:
	<select name="language" size="3">
	<option value="en" selected>English</option>
	<option value="de">Deutsch</option>
	<option value="ts">Tsetswana</option>
	</select>

WIKINDX home      WIKINDX usage      WIKINDX classes