I am now having trouble with a follow-up page, which should allow Presenters to update their information, but using these same dependent menus.
I have used the following code snippet on that page, and it works well enough in that it sets the first field in the dependency set, of Country, to the correct value:
<option value="<?php echo $row['id'];?>" <?php if(($rsAllPresenterData->getColumnVal("CountryID")) == $row['id']) echo ("selected");?>><?php echo $row["name"];?></option>
However, neither of the two succeeding dependent fields works. And nor does it matter if I adjust the option strings to correct values.
I have tried all sorts of tricks with queries and cookie and session variables, but am beginning to suspect that it is not possible in PHP alone.