java - How to transfer checkbox values to MySQL? -
java - How to transfer checkbox values to MySQL? -
i working on java frame. have created questionnaire in utilize number of ckeck boxes. check boxes labelled 1-15. wish collect info on checkboxes selected , transfer them db in mysql.
for radiobuton, manage because can create buttongroup , :
int marital = 0 ; if (jradiobutton3.isselected() == true) marital = 1; if (jradiobutton4.isselected() == true) marital = 2;
and on sql side, column have value 1 or 2 depending on radio box chosen.
however, multiple checkboxes there possibility of multiple choices. each checkbox has own method. question this:
how should collect info on check boxes selected. should transfer vector or 15 single values? on sql side, should have 15 columns or 1 column can take vector?thank precise information.
no, assign value each check box item.
and when receive value , seek insert in mysql, insert value button.
it approach you.
java mysql swing checkbox
Comments
Post a Comment