Welcome to LiveValidationPHP

What is LiveValidationPHP? Well in short it's a form validation script. I've seen a lot javascript-based scripts and a lot of them just (sorry) sucks ;-). But recently I've found one that was:

  • small
  • easy to install
  • easy to extend
It was a javascript based form validation script called LiveValidation made by Alec Hill. I'm not going to explain how to use the javascript, you can see read it on the LiveValidation website.

Client side? What about server side?

So LiveValidaion is a clientside form validation. Meaning, when someone will disable the javascript, you can still submit the form. So if you want to have real form validation, you'll also need serverside validation. This means you'll have validate the form TWICE (set up the rules etc).

Best of both worlds

Because I just love the LiveValidation javascript, I've created a PHP helper class. With the PHP helper class, you can define the validation rules once and the PHP and javascript will use these rules to validate the form. The PHP script will also generate the javascript code for the LiveValidation javascript.

Let's go!

So don't wait now, download the PHP script now! or visit the examples.

Quick example


I dare you to say "hello"