Validating a method
Here are some of the most popular ones: Review and Inspection – Review and inspection is the most rigorous process. Some will be resolved on the spot others will need to be referred to specialists for clarification.It can also be the most time consuming as it generally involves all the stakeholder representatives. This means that this process is iterative and may go through a few iterations before all the issues are resolved.With the cluster validation wizard, you can run a set of focused tests on a collection of servers that you intend to use as nodes in a cluster.This cluster validation process tests the underlying hardware and software directly, and individually, to obtain an accurate assessment of how well failover clustering can be supported on a given configuration.Prototyping – One of the most effective ways to ensure that the developers are on the same page as the users.Prototyping is generally used to test validity and completeness of the requirements.Let’s take a look at how to do that with a text field that is only supposed to have a value of either ‘AAAA’ or ‘BBBB’ (yes, I know that this does not make much sense in a real PDF form).So, if the user enters ‘01234’ we should see an error message that would instruct the user about what type of data is valid for this field.
So now instead of typing the same code for each of our input fields we simply check each $_POST variable with the check_input function and that's it.
Allowing invalid data to be entered into the database ensures that the database and the data available will become less valuable and harder for the user to use.