I have a form with different inputs, of which the vast majority are not necessary to fill (and some of these are inputs that are related to other tables), my question is, when these inputs are empty, how do I do that are not added in the insert to the database or to be inserted but with a null value?
The inputs of type "text" that are in the insert / update and that in the table are of type varchar do not throw error because they are stored as NULL type, however all others (checkbox, select or inputs that have to send numbers) no, they throw error at the time of executing the query, try leaving them the value="" but the same does not work.
Would I have to do a previous check in the controller or is it something that has to be configured in the same database?
I hope I have been specific enough, thank you!