S
S
SadekiSan2014-11-25 18:45:06
Zend Framework
SadekiSan, 2014-11-25 18:45:06

PHP+XML=HTML Form?

I have the following task: I need to make dynamically created forms using php, it is not necessary that the data be stored in XML, you can JSON or a database or some other format. Here, there is some kind of social network with cloud computing, where the group administrator must determine what data the user should enter (respectively, through some kind of graphical interface, determine the form that the user will have to fill out). That is, something reminiscent of the types of materials in Drupal (Admin, creating a type of material, determines the fields that will need to be filled in when adding a material of this type). Please tell me how can this be done...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Nikolaev, 2014-11-25
@Heian

Define the structure, save it in the database at your discretion, and when outputting, simply take the data and build the desired picture based on the fields / templates. In general, nothing complicated - in fact, a set of ordinary html forms (for the interface) and their processing.

X
xmoonlight, 2014-11-25
@xmoonlight

Visual jquery form editor with saving to a structured array of fields.

S
SadekiSan, 2014-11-25
@SadekiSan

Thank you very much. Can you recommend any form generator? The whole problem is that the form should be created by a person who is ignorant of web technologies (a person creating a group), i.e., I guess, pokes some buttons and form fields appear, then the whole thing is saved somewhere (suppose in DB), and already another person who will create a certain task in the group will have to fill out this form and we must, of course, somehow filter / validate the data entered by him and save this data in an xml file in order to normal the programmer (not me) could read this data and do something with it...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question