I'm using MySQL and PHP and I have a form with two dropdowns, one for food item, and another for units.
The user should select the food item, and the form should go fetch the unit options from the database on the server for that food item.
I imagine I need to use Javascript to open a PHP page that just returns the options and use the javascript to populate the field options.
Is Javascript the best way to do this? Is there any solution that would not require me to use Javascript?
Does anyone have a link to an example I coudl crib from? Much thanks!!!