I am trying to do the following:
suppose I have a complex structure:
$products=[vegetables=>[peppers=>[green,red,orange],lettuce=>[long,curly],...]];
In the page the user must pick a single produce (e.g. red peppers) and what I want
is to tie two listboxes so that if peppers is chosen on the first, the three (green, red,orange) options appear on the second. Of course I can join the strings and have a single listbox, but the first choice is obviously more efficient
Is this possible in PHP and if so, how does one tie the options?
suppose I have a complex structure:
$products=[vegetables=>[peppers=>[green,red,orange],lettuce=>[long,curly],...]];
In the page the user must pick a single produce (e.g. red peppers) and what I want
is to tie two listboxes so that if peppers is chosen on the first, the three (green, red,orange) options appear on the second. Of course I can join the strings and have a single listbox, but the first choice is obviously more efficient
Is this possible in PHP and if so, how does one tie the options?