I think the answer to this is probably quite simple, but I can't find a sample of similar code. Maybe there is a better way of doing what I want.
I would like a form with two <SELECT> lists.
The first list includes company names. The company names are stored in an array.
The second list includes employee names. The employee names are also in an array. My first questio: it it possible to give the employee array 2 indexes (indices!?), the first being company and the second being the employee. I guess I would reference the array like this ....
$employee = emparray;
$employee2 = emparray;
$employeex = emparray; etc
How do I build such an array?
The contents of my drop-down lists will be fetched from a database by my PHP code. I'm guessing that I will need my PHP code to dynamically build these arrays.
Anyone with a suggestion for a better method feel free to say.