If the data is an array output them one at a time. E.g: form_input('name[]', set_value('name[]');
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 38f50fa..f457600 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -736,6 +736,13 @@
return $default;
}
+ // If the data is an array output them one at a time.
+ // E.g: form_input('name[]', set_value('name[]');
+ if (is_array($this->_field_data[$field]['postdata']))
+ {
+ return array_shift($this->_field_data[$field]['postdata']);
+ }
+
return $this->_field_data[$field]['postdata'];
}