Hmmm, just saw that version 1.2 of get_foreign.lib.php3 introduced a bug, and now, drop-downs of foreign keys don't work any more (at least in PHP 4). This code has to run for every iteration of the loop. Marc