Hi, I am using CakePhp and MYsql for my application
I am having three tables
Forms(id,name,created,modified)
Attributes(id,form_id,label,type,sequenceno)
Results(id,form_id,attribute_id,label,value,submitted_by)
The application i am developing is like form Builder. Generating the fields based on the type (eg .. If type="text" ->generate textbox)
Now i am having a doubt regarding if i my type is "Dropdown" then it will have a dropdown box with some 3 options.. How can i keep those choice name.. Eg.. Male Female
My sample entry in the table will be like in attributes table
1 1 name text 1
2 1 age number 2
3 1 address Textarea 3
And in my results table
1 1 1 name aruna
2 1 2 age 22
3 1 3 address XYZ
that is how can i save male and female choices in the table..SInce i will have the privilage to change the choice name even in between ... Please suggest me