dimanche 2 août 2015

replace checkbox value into number when inserted into sql

I have 3 checkboxes named "Historical", "Leisure", and "Family and Kids". When they are checked, they need to insert into sql. However, I need to categorize them in sql. Let say the "Leisure" has checked, value "1" will be inserted into sql instead of "Leisure". I know that java comboBox contain a getSelectedIndex method, does checkbox contains that method too ? If not, what method can I use? Thanks




Aucun commentaire:

Enregistrer un commentaire