Like the Spartans at Thermopylae, these 300 lines of code are meant to protect your forms from malicious invaders.
Use this simple plugin to validate your forms. Use regular expressions to match user input against. No need to install huge plugins to validate your forms. This plugin is there for validation, to build the actual form, you still have to do the coding.
I do not claim this code to be complete yet, as it is an alpha version. Before using it in your live site, please do some testing.