I want to develop an app in PHP with following features
- User can create multiple form using a form designer with as many field they wanted
- Every form submission will be stored in mysql
- User can see respective form submission later
I have done the UI part and form designer.
Problem
I am not able to figure out how to design database for accepting form submission, for instance If an user created a form with following fields
- Name
- City
- Subject
- Query
But later user can add or remove fields without messing with the database design.
Please help me with MySQL database design for storing form into table and there submission.
Something like this:
I would suggest that modifications to a form’s design create a new (copy) form in the database, so as not to invalidate any historical submissions based on the old design.