If not enough, use the awesome Parsley extra Ajax validator or tons of other extended validators provided by the community.When you submit a form to a CGI program that resides on the server, it is usually programmed to do its own check for errors.
This tutorial will assume that you’ve read the first tutorial and that you have a basic understanding of SQL and My SQL.
This means when a user selects “Male”, the “form Gender” value when accessed by PHP will be “M”. Of course, this requires validation.(For a generic, easy to use form validation script, see PHP Form Validation Script)It’s also a good idea to put your validation checks in the same order as the inputs appear on the form.