This last post helped me a lot. I have a form with dynamcially generated drop-down menus numbering 1 through no. of records from MySQL. But I was using a JavaScript onChange to automatically update all the drop-down menus when one is changed. For example: It prints a list of 9 drop-down menus all valued at 1-9 respectively. Then, if you change the first one from "1" to "2", it automatically updates the second one from "2" to "1"...
Well, I wanted to submit these new values as an array using name="menu[]" but that kept my JavaScript from working. So, instead I replaced my onChange from this:
onChange="reOrder(menu[], <? echo $t++; ?>);"
To this:
onChange="reOrder(document.forms[0].elements['menu[]'], <? echo $t++; ?>);"
And now it works perfectly!