Here's my situation. I have a dropdown list from which the user is supposed to select 11 values. Lets say the list shows the names of the players of a team. Now the 11 names are selected by an user and these names (or IDs associated with them) are added to an array. When the user clicks on "save" button the IDs get inserted to a database table. How do I do this?
Thanks Naveed for being detailed. I needed that. But I think I have not elaborated enough about my problem. A multiple selection is not what I had in mind. I was rather looking for selecting multiple times.
Lets say I have two drop down lists. One is "Club" and the other one is "Players". User first selects a team "Arsenal" from the "Club" dd-list. Then he/she selects a player and the name of that player appears on the side. Following this process he/she selects 11 players. After that, if he wants to save his team, he presses the "Save" button and the ID of the players get inserted to a DB table.
I have got the two dropdown llist thing figured out. I just need to know how the latter part of the process can be done.
And I don't want the page refreshed.
Thanks Naveed for being detailed. I needed that. But I think I have not elaborated enough about my problem. A multiple selection is not what I had in mind. I was rather looking for selecting multiple times.
Lets say I have two drop down lists. One is "Club" and the other one is "Players". User first selects a team "Arsenal" from the "Club" dd-list. Then he/she selects a player and the name of that player appears on the side. Following this process he/she selects 11 players. After that, if he wants to save his team, he presses the "Save" button and the ID of the players get inserted to a DB table.
I have got the two dropdown llist thing figured out. I just need to know how the latter part of the process can be done.
And I don't want the page refreshed.