I am creating a website wherein Admin is supposed to create a Form and the other users are supposed to fill it and submit it.
My main goal is to the give the Admin user a webpage where he will type the question , select the type of answer to be required and add options if necessary ( for checkbox and radiobuttons ).
I need to create a form based on these details and the form should be updated whenever a question is updated/deleted/modified.
The form will then be shown to the registered user to fill up.
The main problem is where to store the details of the form and how to create it whenever a question is added/deleted/modified
I was thinking of creating a XML file where in users would add fields he would like to display and then the form will be created dynamically on run-time.
But this approach is becoming too cumbersome and i was thinking if there is an easier way to do so.