Post pobrano z: PHP Library For Creating & Validating Forms – Zebra_Form
Building good-looking HTML forms which work well in every browser and applying client+server-side validation usually takes a serious development time.
Zebra_Form, a free PHP library, handles this process very well and enables us to create secure and chic forms with a few lines of PHP code.
The output can be generated either with the ready-to-use styles (with valid HTML) or with any new/custom ones.
An integrated cross-site scripting prevention mechanism removes any possible malicious code submitted. It also helps preventing automated spam submissions.
The client-side validation is handled with jQuery, alerts are displayed inside tooltips and many validation types can be used (like "required, e-mail, length, etc.").
Besides standard input types, Zebra_Form supports Ajax-like file uploads, date-time pickers and captchas.