v5:reference:recordset:getmenu
This is an old revision of the document!
getMenu
Syntax
string getMenu( string $selectName, mixed $defaultValue, bool $blankFirstItem, bool $multiple, int $numberOfRows, string $optionalAttributes, bool $compareAgainstFirstCol )
Description
The function getMenu()
Generate an HTML SELECT tag string from a recordset, and return the string. If the recordset has 2 cols, the 1st column is is are compared with the FIRST column.
Parameters
string $selectName,
mixed $defaultValue, bool $blankFirstItem, bool $multiple, int $numberOfRows, string $optionalAttributes, bool $compareAgainstFirstCol
$selectName
name of SELECT tag
$defaultValue
The value to highlight. Use an array for multiple highlight for listbox.
$bankFirstLine
true to leave the 1st item in list empty
* @param [multiple] true for listbox, false for popup * @param [size] #rows to show for listbox. not used by popup * @param [selectAttr] additional attributes to defined for SELECT tag. * useful for holding javascript onChange='...' handlers. & @param [compareFields0] when we have 2 cols in recordset, we compare the defstr with * column 0 (1st col) if this is true. This is not documented. * * @return HTML
v5/reference/recordset/getmenu.1439513408.txt.gz · Last modified: 2017/04/21 11:37 (external edit)