Method:
selectedBoxValueMultiple()
Class:
FORM
Method Call:
include_once("core/html/FORM.php");
STRING FORM::selectedBoxValueMultiple(STRING: $label, STRING: $name, ASSOC_ARRAY: $options, ARRAY: $selected, [INT: $size, INT: $override]);
Unlike selectedBox(), this method sets the value parameter of the option tag to the key of the associative array $options.
Usage:If $options is:
array( "en" => "English", "de" => "Deutsch", "ts" => "Tsetswana", ); and $selected is: array("en", "ts");then
$pString = FORM::selectedBoxValueMultiple(FALSE, "language", $options, $selected);would return the string:
<select name="language" size="3"> <option value="en" selected>English</option> <option value="de">Deutsch</option> <option value="ts" selected>Tsetswana</option> </select>