the is a query page. When it first comes up the two select fields will be populated with everything and the default option on each is blank. If you choose an item in the first select box the second one updates to reflect the first.
So select box #1 is categoryA and select box #2 is sub-categoryA.
the mock code looks like this...it is just a piece of a larger table...but these are two select boxes I'm referring. You can see that first select statement generated by GetMenu() can take a ONCHANGE javascript and run through a javascript func., but since I can't put PHP in the javascript func I'm not sure how to re-run the query.
<?php
<TR><!--Row 4-->
<TD WIDTH="50%" ALIGN="CENTER"><!--Document 1-->
<TABLE WIDTH="100%" border="0" cellspacing="3">
<TR>
<TD ALIGN="CENTER" CLASS="metatitle"><B><FONT COLOR="#FFFFFF">Module Group Name</FONT></B></TD>
<BR>
</TR>
<TR>
<TD WIDTH="50%" ALIGN="CENTER">';
$dbconn->Connect($SNPro_server, $SNPro_user, $SNPro_pass, $SNPro_db);
$sSQL_mod_grp = 'select distinct module_group_name from event';
$module_grp = $dbconn->Execute($sSQL_mod_grp);
print $module_grp->GetMenu('module_grp','module_group_name',true,false,0,'ONCHANGE="update_module_sig()" ');
$dbconn->Close();
echo '
</TD>
</TR>
</TABLE>
</TD>
<TD WIDTH="50%" ALIGN="CENTER"><!--Document 1-->
<TABLE WIDTH="100%" border="0" cellspacing="3">
<TR>
<TD ALIGN="CENTER" CLASS="metatitle"><B><FONT COLOR="#FFFFFF">Module (Sig) Name</FONT></B></TD>
<BR>
</TR>
<TR>
<TD WIDTH="50%" ALIGN="CENTER">';
$dbconn->Connect($SNPro_server, $SNPro_user, $SNPro_pass, $SNPro_db);
$sSQL_mod_sig = 'select distinct module_name from event';
$module_sig = $dbconn->Execute($sSQL_mod_sig);
print $module_sig->GetMenu('module_sig','module_name',true,false,0);
$dbconn->Close();
echo '
</TD>
</TR>
</TABLE>
</TD>
</TR>
?>