AnsPress_Form::select_options( array $field = array() )
Description #
Output select field options.
Parameters #
- $fieldarray (Optional) Field. Default value: array()
Source #
File: includes/class/form.php
private function select_options( $field = array() ) { foreach ( $field['options'] as $k => $opt ) { $this->output .= '<option value="'.$k.'" '.selected( $k, $field['value'], false ).'>'.$opt.'</option>'; } }
Expand full source code Collapse full source code View on GitHub: includes/class/form.php:416
Add your comment