When the form is submitted there's no way to tell which drop-down menu did the submitting. A workaround would be to add a hidden input to your form, and have the javascript event set that to the appropriate menu.
<input type="hidden" name="which_menu" value="" />
<select name="frm_cbo_top" onchange="this.form.which_
----
Or, you could have 2 hidden fields, each of which contains the original value of the 2 select lists. THen in the post .php page, compare the values from the hidden inputs with the values from the submitted select lists to see which one changed. This is a little more code to implement, but doesn't require javascript.
Main Topics
Browse All Topics





by: scully00000Posted on 2003-10-30 at 07:43:38ID: 9650870
Rfresh
Likelihood is that when you submit your form, the top combo box is ubmitting a value (default or otherwise). CAn you post the HTML and the PHP up so I can have a look?
Cheers