... then this may be what u need....
http://www.zend.com/zend/tut/drop-down.php
they update, via JS, without a call to the server (i think, i did it a long time ago) a drop down list in a form via what was preciously selected in a prior drop down box.
hope this helps, send me a beer at XMAS if it helps.
oli
THIS IS WHAT I DID
function chainedSelectors($id, $action) {
?>
<form name="categorySelect" action="?" method="get">
<input type="hidden" name="action" value="<?php echo"$action"; ?>">
<input type="hidden" name="id" value="<?php echo"$id"; ?>">
<?php
$result = mysql_query("SELECT directoryMainCategories.mainName, directoryMainCategories.mainID, directorySubCategories.subID, directorySubCategories.subName, directorySubCategories.subXref FROM directorySubCategories, directoryMainCategories WHERE directorySubCategories.subXref = directoryMainCategories.mainID");
echo "Main Category <SELECT NAME=\"\" ONCHANGE=\"maincategoryselected(this);\">\n";
echo "<option selected>Please Select Main Category</option>\n";
$sJavaScript = "function maincategoryselected(elem){\n for (var i = document.categorySelect.subcategory.options.length; i >= 0; i--){ \n document.categorySelect.subcategory.options = null;\n";
$sLastCountry="";
while ( $row = mysql_fetch_array($result) )
{
If ($sLastCountry!=$row["mainName"])
{
$sLastCountry = $row["mainName"];
echo "\n<OPTION VALUE='".$row["mainID"]."'>".$sLastCountry."</OPTION>";
$sJavaScript = $sJavaScript."}\n"."if (elem.options[elem.selectedIndex].value==".$row["mainID"]."){\n";
}
$sJavaScript = $sJavaScript."document.categorySelect.subcategory.options[document.categorySelect.subcategory.options.length] = new Option('".$row["subName"]."','".$row["subID"]."');\n";
}
?>
</select><br><br>
Sub Category
<select name="subcategory">
<option>Select a Main Category First</option>
</select><br><br>
<input type="reset" name="reset" value="Reset">
<input type="submit" name="" value="Submit">
<?php $sJavaScript = $sJavaScript."\n}\n}\n"; ?>
<SCRIPT LANGUAGE="JavaScript"><?php echo "$sJavaScript"; ?></SCRIPT>
</form>
</center>
<?php
}