I need help in how to obtain and transform the values of several checkboxes to insert them in the database with a comma, for example:
Seleccione sus frutas favoritas: <br>
<input type="checkbox" name="frutas" value="manzana">Manzana
<input type="checkbox" name="frutas" value="naranja">Naranja
<input type="checkbox" name="frutas" value="banana">Kanana
<input type="checkbox" name="frutas" value="kiwi">Kiwi
<input type="checkbox" name="frutas" value="pina">Piña
<input type="submit">
when selecting multiple fruits for example "orange", "banana", "kiwi" ... etc
are inserted in the database in the example column "nombre Varuto2 (20) so that it looks like: ('banana, orange, kiwi').
in the servlet I understand that the parameters are collected in a variable that are sent to a method and inserted, but I can not send several checkbox parameters to insert them with that format explained ...
Thanks in advance ...