Search This Blog

Friday 23 October 2015

v3, a Three Levels Validation Contact Form for Bootstrap

v3, or vCube, is a contact form that I just published on github.

The form has three levels of validation:

  • Javascript Validation
  • PHP Anti spam tests
  • PHP Validation

Every configuration is in one configuration array, then the script builds the form, validates and sanitizes the data for you.

The script includes a library for js validation: Bootstrap Validator, a library for PHP validation: GUMP (which I added a couple of functions) and a plug-in for captcha.

vCube class makes cooperate the two classes:

  • it builds the HTML to trigger the javascript 
  • drives the data trought GUMP for server side parsing

Between these two steps v3 makes three anti-spam tests:

  • is not a bot,
  • hidden form field value,
  • the form is compiled in a time range (2-3600 seconds).

See the web-page on Github: http://orazionelson.github.io/v3/

See the project page on Github: https://github.com/orazionelson/v3

No comments:

Post a Comment