Now what I'm trying to figure out is how can I store the form's "metadata(excuse me if needed for incorrect terminology)" in the database?
For example, I have a form that has a text field[name], a checkbox area[skills], and a radio button area[hair color].
So I have a table that stores the data (that the user submitted) from the form textfield, checkbox area, and radio button area.
How can I design a table that would show that the name input is a text field, the skills input is a checkbox, and hair color input is a radio button?
I was thinking a design of something similar to:
Table 1 ------------------------------ | form | ------------------------------ |name |skills |hair_color | ------------------------------ |data |data |data | ------------------------------ |data |data |data | ------------------------------ |data |data |data | ------------------------------ |data |data |data | ------------------------------ Table 2 ------------------------------ | form_metadata | ------------------------------ |name |skills |hair_color | ------------------------------ textF |checkB |radioB | ------------------------------
I'm not sure if this would be a feasible approach to this problem and would like a push in the right direction.


Sign In
Create Account


Back to top









