I have two drop down list on a form:
<select id="slctFirm">
<?php
$firmObj = new dbFirm($myDB);
echo $firmObj->DropdownOptions();
?>
<select id="slctPerson">
<?php
$personObj = new dbPerson($myDB);
echo $personObj ->DropdownOptions();
?>
the PHP code is calling an object I have created to generate the lists for the two drop downs. The second list is populated with the people belonging to the firm selected in the first drop down. Now the problem is that the first list retrieve only the firms' name and order them in alphabetical order as I don't want the firms IDs to appear in the first drop down list. In order to filter the second list I need the IDs but I don't know how to store this ids in the first drop down without them appearing in the list? Hope this makes sense.