WIKINDX METHODS

Method:
selectFBox()

Class:
FORM

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

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

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

If $options is:

	array("apples", "bananas", "oranges",);
then
	$pString = FORM::selectFBox("Fruit", "fruit", $options);
would return the string:
	Fruit:<br />
	<select name="fruit" size="3">
	<option selected>apples</option>
	<option>bananas</option>
	<option>oranges</option>
	</select>

WIKINDX home      WIKINDX usage      WIKINDX classes