Form validation tutorials – done to death right? As a player for Team Redundancy, I’ve built one for the Pandra library (PandraValidator class) which performs server side validation with the help of jQuery. Both client and server side uses the same validation function, and the good thing is – it’s really fast. It ticks a few security boxes also (referrer checking, a honeypot field, POST timer, GET > POST method enforce) and may be a good conceptual guide for building your own.

Source is here, enjoy.