I have got a form with two selectboxes which I want to populate from database.
These are my database tables:
I want to populate the first selectbox with table "sort".
That's no problem.
After selecting a option from selectbox "sort" I want to dynamicly load the related values from table "answer" in the second selectbox.
Is this possible? And if so, how?
Thank you!
These are my database tables:
TABLE sort
ID | TITLE
1| vegetables
2| fruits
3| drinks
TABLE answer
ID | PARENT | TITLE
1 | 1 | tomatoes
2 | 1 | carrots
3 | 2 | apple
4 | 2 | banana
5 | 2 | peach
6 | 3 | beer
7 | 3 | wine
I want to populate the first selectbox with table "sort".
That's no problem.
After selecting a option from selectbox "sort" I want to dynamicly load the related values from table "answer" in the second selectbox.
Is this possible? And if so, how?
Thank you!