diff options
-rw-r--r-- | usr/local/www/classes/Form/Input.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/classes/Form/Input.class.php b/usr/local/www/classes/Form/Input.class.php index ae85109..597af4c 100644 --- a/usr/local/www/classes/Form/Input.class.php +++ b/usr/local/www/classes/Form/Input.class.php @@ -103,7 +103,10 @@ class Form_Input extends Form_Element $attributes = $this->_attributes; if (isset($this->_name)) + { $attributes['name'] = $this->_name; + $attributes['id'] = $this->_name; + } foreach ($attributes as $key => $value) $html .= ' '.$key.'="'. htmlspecialchars($value).'"'; |