5
In the site I’m developing I will, for example, a registration form where the user should define their gender in a combobox (male or female). The table users in the database will have all user fields as string
, date
, float
. How do I define the sexo
?
So that in the combobox registration I already load the male and female option and the base register as M or F, already having these two options there registered. Thus it would have to appear to the user 'Male' or 'Female' and in the table of the database I have it as field sex having as option of this field only M or F.
If I understood correctly, would you just make this "de-stop" between Masculine be
M
and Female beF
in the application before retrieving/saving this information in the database. This is your question?– Dherik