How do you save checkbox text to database?

hello, sorry my english bad.
I want to create a form, in that form there is gender with 2 checkboxes, female and male. how can i save it in database?, only one data, for example just jkLK.
I use database phpmyadmins to save data

image

Simplest approach

image

assumes only one of the two checkboxes is checked

In today's world, you may need more options beyond "Male/Female"......

Use a List Picker instead of the check boxes, and save the Selection.

Thanks, it works.
what if there are more than 2 options? please help me..

As @ABG suggested use a listpicker or a spinner to make a selection

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.