One first form submit all subs run

MaXeL3G3ND

New Member
Ok I have a form with several drop down lists in it and they are set to run different subs if they are changed (onChange="mysub"). However the first time any of them is changed it runs though all the subs. It appears its disregarding the sub/end sub tages around them. Does any body have any ideas why this might be occuring?Ok so I found the solution. When the list boxes are created their default selectedIndex is -1 but when the form is submited their selectedIndex is changed to 0. So even though nothing is changed their value is initially set on the first post. Ah ha!
 
Back
Top