http://www.phpandsql.com/blog/php-form-validation/ By using ‘jquery’ you can validate a form or form data in PHP, which is necessary in order to protect the form from the hackers & spammers. It is important factor in web development, you need to validate the ‘form’ like ‘registration, contact details form’, or any input form to prevent the errors & nasty values & make ‘valid value’ before inserting in the ‘database’.