Select
Usage example
<?php $form = new \Ip\Form(); $values = array( array('1', 'Melon'), array('2', 'Orange'), array('3', 'Banana') ); // Another way to add values to select field $values = array('Melon', 'Orange', 'Banana'); // Add a field $form->addField(new \Ip\Form\Field\Select( array( 'name' => 'mySelect', // set HTML 'name' attribute 'values' => $values, 'value' => 3 // select 'Banana' ))); echo $form->render();