All releases of Zebra_Form


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.


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


Release Notes: A bug was fixed where dates having the day < 10 would not pass validation. An issue was fixed that allowed malicious users to submit arbitrary values instead of the ones defined at the form’s creation for select controls, checkboxes, and radio buttons. The severity of the issue was low, as the submitted values were still filtered for cross-site scripting (XSS) attempts, so no real harm could be done.


Release Notes: A bug was fixed where dates would never validate for languages other than English. The form now completely adheres to http://www.w3.org/TR/WCAG20-TECHS/H44.html, which requires that all controls have an associated label. Previously, the honeypot element did not have an associated label. Some minor optimizations were done in the PHP code as well as some clarifications in the documentation regarding the "resize" rule.


Release Notes: A new validation rule was added called "filetype". With this rule one can restrict the types of files that can be uploaded by specifying a list of allowed file extensions. It's important to note that validation is not done by file extension but by the MIME type of the uploaded files. For this, a new file is available in the root of the library called "mimes.json", and this contains the currently supported extensions and associated MIME types. The library now makes use of the Zebra_TransForm jQuery plugin to replace radio buttons, check boxes, and select boxes with nicer ones.


Release Notes: A bug was fixed where the settings for client-side validation would be reset if a file upload control was added to the form. A bug where the client-side validation would crash when the format of the date contained day names or month names has been fixed. A bug where determining the path where the library is located was not working for certain configurations has been fixed. A bug that would crash the script if the date format contained "/" (slashes) has been fixed. A bug where the length rule was tested even though the element had no value nor was the required rule set has been fixed.


Release Notes: A bug related to the "date" control was fixed. A huge bug affecting file upload validation was fixed.


Release Notes: A bug was fixed where, for custom validations, the JavaScript function was not getting any additional arguments except the element's value. A bug was fixed where the "date" control would add an invalid attribute to the element that would cause the generated output not to pass the W3C validation. A bug was fixed where in the newest versions of PHP 5 the script would generate "PHP Strict Standards" notices because of how mktime() (with no arguments) and array_shift() are treated in these versions. Also, there are some documentation updates and clarifications.


Release Notes: The major change this version is that the client-side validation has been ported to jQuery. The "date" control has some new methods thanks to the integration with the Zebra_Datepicker jQuery plugin. Regardless of the format used for a date, the submitted date can now easily be retrieved in YYYY-MM-DD format for use with a database or with PHP's strtotime function by using the newly added get_date() method. Zebra_Form was not working if the jQuery was loaded at the end of the page. A bug with custom validation rules and a bug with "selects" having the "other" option set have been fixed.


Release Notes: The most important change in this version is the client-side validation, based on MooTools.