Does the nature of form-builder (PHP) + validator (client+server) in one bottle?

0 like 0 dislike
3 views
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: HTML_QuickForm2.

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 said:
HTML_QuickForm2 alpha because again isn't written yet functionality (namely, integration with javascripta). But unlike the old version it is almost 100% covered by tests and stability is clearly not worse...


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/
by | 3 views

7 Answers

0 like 0 dislike
For history: the question decided by the start of the project jquickform.aberdnikov.ru
by
0 like 0 dislike
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?
\r

we say to ourselves: do it and be able to eat chocolate. And sit do.
by
0 like 0 dislike
did something similar for CodeIgniter, server rules generalise client, which already fed the above-mentioned Vanadium.
\r
But complex forms are not reached.
by
0 like 0 dislike
This library not tried?
\rcode.google.com/p/php-form-builder-class/
The examples at the bottom of the page.
by
0 like 0 dislike
Not looking in the direction of the frameworks? For example, in codeigniter there is an option, and validation and create forms — powerful enough!
by
0 like 0 dislike
use samopisnye thing to generate validation rules based on layout, however the validator server -
by
0 like 0 dislike
And validate via Ajax the server side is not comme Il faut?
by

Related questions

0 like 0 dislike
2 answers
asked May 2, 2019 by 3dben
0 like 0 dislike
3 answers
asked Jun 4, 2019 by Markus1
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
1,117 users