How to get the multiple selected Combobox value

<select multiple="multiple" size="2" id="user_name" name="user_name">
<% users.each do |user| %>
  <option value="<%= user %>">
    <%= user %>
  </option>
<% end %>
</select>

How to get the multiple selected value in the controller.

Now if I say
" puts params[:user_name] "

only the last selected value is coming .

Plzz Help

Thanks in advance,
Antony

try:
<select multiple="multiple" size="2" id="user_names"
name="user_names[]">

Thanks Boss Its Working ....

Thanks a Lot :slight_smile:

Sharagoz -- wrote: