Just want to ask if it is possible to use PHP in my question so here it is. I am making a simple search code wherein the user will search for example "John" now many John's will appear on a table. In each row there will be a button named "add to list". If the user clicks the add button, the details of John will be put inside the select multiple like this.
<select multiple class="form-control">
<option>John</option>
</select>
now if I click another for example "Kevin" it will become...
<select multiple class="form-control">
<option>John</option>
<option>Kevin</option>
</select>
once the select multiple has been populated I will print it(thats another story now). So basically my question is how do I add values to <select multiple> by pressing the button "add" and get the ID's of the options inside select multiple for retrieval? I think i'm making my question complicated and i'm very sorry for my bad english. I've tried if, for, do-while, while but i cant seem to get the logic.I hope you understand thank you very much!
arraysto store result and then populate dropdown from arraysforeachought to get you going. Remember to name that select of yours and give values to your options.