HTML flags should not work this way. If you check the box, a pair of defined parameters name = value will be sent. If you remove it, it will not be sent. On the server side, you just need to check for the parameter name (or value in the case of several flags in the named group) in the parameter map and process it accordingly. If he is present, he is checked. If absent, then it is not checked. Just like that. You already know the "unverified value" on the server side.
source share