That was a good catch. I have fixed the space typos and added some line breaks to make the html lines shorter so they don't get recreated spontaneously, which is how they got there in the first place.
I'm still having 2 problems with this page:
1. If there is a project passed in the URL, the parent field selects properly, but the child dropdown does not populate. If there is no ID passed in the URL, or if the user selects an agency, the child dropdown will populate.
2. When the child dropdown populates, it's not actually possible to select any of the choices. Reviewing the page's source code shows the child dropdown as empty.
I've tinkered a lot, trying different things, so I'm including the body tag here again as it currently stands:
<body <? if (isset($_GET['ID'])) { ?> onload="WA_setSelectionsInChildList(MM_findObj('orgID'),<?php echo $row_project['agency']; ?>)" <? } ?>
<? if (isset($row_project['agency'])) { ?>onload="WA_FilterAndPopulateSubList(contacts_WAJA,MM_findObj(<? echo $row_project['agency']; ?>),MM_findObj('contact'),1,0,false,': ')"
onload="WA_setSelectionsInChildList(MM_findObj('contact'),<?php echo $row_project['contact']; ?>)" <? } ?>
>
In trying to understand what's going on, I also made a much simpler page with the essential features I'm working on here. It's at scratch.php?ID=81
With the simpler version, problem 1 still exists, but problem 2 does not. I haven't been able to understand why it allows selection of the child while the real page doesn't.
Thanks, barbara