Projects / Zebra_Form


Zebra_Form is a PHP class that simplifies the process of creating and validating HTML forms. Its object-oriented structure promotes rapid HTML forms development and encourages developers to write clean and easily maintainable code. It frees the developers from the repetitive task of writing the code for validating forms by offering powerful built-in client-side and server-side validation. Zebra_Form has an integrated cross-site scripting prevention mechanism that automatically strips out potentially malicious code from the submitted data. It also prevents automated SPAM posts, out of the box and without relying on CAPTCHA by using honey pots. Output can be generated either automatically or manually through templates (basic PHP files). When generated automatically, the generated output has the same look and feel across all major browsers. It provides all the controls you’d expect in an HTML form and, additionally, date/time pickers, captcha, and AJAX-like file upload controls.

Operating Systems

Recent releases

  •  14 Jan 2013 07:24

    Release Notes: Many bugfixes and new features.

    •  09 Apr 2012 06:33

      Release Notes: Elements can now be validated "on-the-fly" where an element is validated as soon as it looses focus. All error messages can now be shown on form submit rather than only the first one. Filenames can now be prefixed with a given string when uploading files. The library now triggers an error message if a "date" control doesn't have the "date" rule set. A bug in the JavaScript code regarding the file upload control, which was not working with jQuery UI, has been fixed. A bug where validation would fail if there were two or more file upload controls on a form has been fixed. Zebra_DatePicker has been updated to v1.3.1.

      •  13 Mar 2012 20:41

        Release Notes: This release fixes a bug which caused the attach_tip() JavaScript method not to work properly (now the placeholders are injected in the DOM right next to the parent element) and a bug which, because of the fact that JavaScript and PHP treat newlines, accented characters, and special characters differently (one byte in JavaScript and two or three bytes in PHP), caused server-side validation of a maximum allowed length to sometimes fail if a textarea’s value would contain newlines (although client-side validation was ok).

        •  20 Nov 2011 17:07

          Release Notes: In this version, a bug was fixed where using multiple forms on a single page would disable client-side validation for all forms but the first one. A bug was fixed where if there were selection groups in a select, it would never pass validation. A bug was fixed where placeholders (labels as hints inside textboxes and textareas) were not working on textareas. Elements that have display:none or visibility:hidden are no longer checked in the client-side validation process. The Zebra_Transform plugin is no longer included in the library; it can be downloaded and used separately if needed.

          •  15 Oct 2011 06:46

            Release Notes: Another bug that would make date validation impossible in certain scenarios was fixed. Some minor updates were made to the JavaScript code.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.