I have created a form to populate a database. All fields are mandatory.
I also created a Submit button.
If I leave the fields blank (no entry/blank), the form gets submitted even if mandatory fields are empty and it get posted in the database.
How can I validate the form has the mandatory fields filled before submitting?