Method:
selectedBox()
Class:
FORM
Method Call:
include_once("core/html/FORM.php");
STRING FORM::selectedBox(STRING: $label, STRING: $name, ARRAY: $options, STRING: $selected, [INT: $size, INT: $override]);
If $options is:
array("apples", "bananas", "oranges",);then
$pString = FORM::selectedBox(FALSE, "fruit", $options, "bananas");would return the string:
<select name="fruit" size="3"> <option>apples</option> <option selected>bananas</option> <option>oranges</option> </select>