Choice element, explicit choice (pull down menu).
create a choice element:
parameter:
value - default value as string. (not the key)
array - array with pairs value => identifier.
name - optional. identifier. Its highly recommended to use unique identifiers to avoid side effects.
status - optional. function called after auto reload. If status is enabled, ippfp sets the choice->reload flag true automatically.
example:
$myChoice = $ippfp->createChoice("",array(1 => "value 1", 2 => "value 2", 3 => "value 3"),"mychoice");
Note: getValue() will give you the key, not the item. getValueAsString() will give you the item.