Is there a flexible form-builder (PHP), allowing users to assign rules for the server and client validation?
Actually the question about not repeating the same work twice, in particular, on habré already were
an attempt to recognize this problem and offered one solution (or rather its prototype) and it correctly said:
the basic idea is to generate client-side validation on the server
For example, for customer validation and build all sorts of Goodies repetitive blocks (for example zforms.ru/docs/repeatable-model/
) there are beautiful solutions zforms.ru/
from the developer of interfaces of Yandex , Dmitry Filatov
Yes, and just to validate a lot of plugins using jQuery.
In the end there is Vanadium: semantic validation on the client
For building forms and server-side validation there is a wonderful library of Alexey Borzov
and as corrected me
Sam Alex — Bertrand Mansion
Is the first version of HTML_QuickForm that allows you to do what is required, i.e. to build the form and on the basis of the requested rules server-side validation on the fly to generate client-side validation rules, but it has a huge disadvantage — the inability of simple ways to build complex shapes, i.e. for example when you want the field group to add to the group, but it is very good flat form.
Dmitry Filatov to my question is there a wrapper for constructing such forms have answered me in MoiKrug:
There are not wrapper in PHP, and an xml description of the validation rules, which is constructed using xsl client-side code and which can be used for validation.
Alexey Borzov to the question about the future HTML_QuickForm2
In other words, there is a wild desire to make friends and HTML_QuickForm2 zforms.ru but before that I would like to ask the "lazy programmers", as they struggle with laziness when building forms and double the work for checking of the input data?
update: issue resolved by the start of the project jquickform.ru/