diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 9d9da4ef..98917a16 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -414,12 +414,13 @@ class htmlSelect implements htmlElement { if (isset($values[$this->name])) { $this->selectedElements = $values[$this->name]; } - $name = ' name="' . $this->name . '"'; - $size = ' size="' . $this->size . '"'; $multi = ''; if ($this->multiSelect) { $multi = ' multiple'; + $this->name = $this->name . '[]'; } + $name = ' name="' . $this->name . '"'; + $size = ' size="' . $this->size . '"'; echo '\n"; $tabindex++; // sorting