Dynamic HTML-Form generation
Posted: Fri Jun 27, 2008 12:17 pm
Good evening everyone!
I'm not sure if I should post this thread in this or the Application design forum, hope i'll get it right.
At the moment i am building an application, where users should be able to generate their own custom HTML-Forms. I'm not sure how i should implement this. The first i think of is a database structure like this:
Each user can have many form, each form can have many elements(like textarea, checkboxes and so on), the element_order table stores the order in which the elements will appear at the final page. The element_value table holds every value for each element. The form_answers table should contain all the answers to the form, and has a reference to elements to link this.
Well, as you see i'm totally lost on this.
Hope you'll get the idea of what i want to establish.
Thanks for any replies!
I'm not sure if I should post this thread in this or the Application design forum, hope i'll get it right.
At the moment i am building an application, where users should be able to generate their own custom HTML-Forms. I'm not sure how i should implement this. The first i think of is a database structure like this:
Code: Select all
USER ----> FORM ----> FORM_HAS_ELEMENTS <--- ELEMENTS <--- ELEMENT_VALUE
^
ELEMENT_ORDER
FORM_ANSWERS
Well, as you see i'm totally lost on this.
Hope you'll get the idea of what i want to establish.
Thanks for any replies!