It has 4 <select> each with 2 points (on, off). When adding a user, only one of the four will be included .
They look like this:
<select size=1 name=pay> <option value="Включен">Включен</option> <option value="Выключен">Выключен</option> </select> I fill in the Index2 field manually and send it to the database. But you need to make sure that when you select a particular <select> , index2 automatically goes to the index2 , corresponding to the select.
For example, I turn on "Technical work", disable everything else. In the field index2 in the table should be written "2".
The table looks like this:
Please tell me what ways this can be implemented.

