squadMemberSelect

(/rs/public/functions.php)

squadMemberSelect -- Provide option tags for a select input.

Description

string squadMemberSelect ($sid)

This function will return a string containing <option> tags for each member of a squadron. The value of the option is the member's pin, and the text is the member's name with no rank or status.

Cadets are always included in the options when using this function.

This function will return an empty string on failure.

Examples

squadMemberSelect (1) /* Returns options for all the members of squad with id 1 */

squadMemberSelect ("foo") /* Returns an empty string */

squadMemberSelect () /* Returns and empty string */

Related Functions

squadMemberPins, selectMember

Dependencies

returnMember, squadMemberPins

Function Index