CodeIgniter Form Helper

This helper is extended from Codeigniter form helper to include the additional functions.

Functions

  • form_dynamic_dropdown($tablename, $fieldDetails, $valueColumn, $displayColumn, $default='') This will generate HTML code for select box by loading the options from the given table and the value column and display column will be used for the options' value and diplay.
  • form_dynamic_dropdown_display($tablename, $valueColumn, $displayColumn, $value) This will retrieve the display column value for respective value in the value column.