diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 1c735671f..d814d8d33 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -2487,9 +2487,16 @@ class e_form unset($options['class']); } + if(!empty($options['label'])) + { + $snip['label'] = trim($options['label']); + unset($options['label']); + } + $snip['id'] = $this->_format_id(varset($options['id']), $name, $value, null); unset($options['id']); - $snip['attributes'] = $this->get_attributes($options, $name, $value); + + $snip['attributes'] = "name='".$name."' value='".$value."' ".$this->get_attributes($options, $name, $value); foreach($snip as $k=>$v) {