Re: [PHP] 'Form Builder'
- Date: Tue, 16 Feb 2016 16:57:50 -0800
- From: Jeffry Killen <jekillen@xxxxxxxxxxx>
- Subject: Re: [PHP] 'Form Builder'
On Feb 16, 2016, at 2:11 PM, Lester Caine wrote:
On 16/02/16 19:36, Adam Jon Richardson wrote:
So is there something I've missed that may be worth considering
I'm in the minority, but I tend to craft DSL's to maintain
this stage of things?
use cases such as HTML forms.
That approach is fine but I'm looking to allow clients to modify or
fields to existing forms and the underlying data management has to
any changes to the field set in addition to being able to reload the
form later to add or update details prior to it being 'locked'.
What I would do is create a basic form template that can have target
that str_replace can replace with preference variables. The
and values can be stored in a registered user preference database or
I do exclusively flat files, but not just text files: php script files
that will not display
anything if a user requests the file by name, but can be accessed via
For the user to add or revise form elements suggests the inclusion of
or even a separate form for the user to use to revise the target form.
makes can be written back to a user preference file. In turn this
registration for the sake of routing form submissions to the proper
for this type of
and forth between client and server and the necessity for maintaining
would put a significant demand on the the server. This would requires
a bit of sanitization of form input on the server side.
My habit in this regard, is to create self processing forms. In this
can be variable states of the visible html based on what is submitted
and how the
visible form is configured. Self processing php/html pages can also
get queries assigned to anchor tag href values, where the target of
the link is
"ajax" async interactions.
In short, it looks like a significant amount of design, coding and
This may not be encouraging, but I thought I would offer some
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php