PDA

View Full Version : Form and Dropdown help....


Dark_Wizard
01-19-2004, 01:50 PM
Ok I'm having a problem here and need some help. I have a form that has 2 dropdowns, whatever is selected in the first dropdown needs to reflect whats contained in the second. Example: if the first dropdwon contains a state lets say New York and it's id is 16 and I select it, I need dropdown2 to contain the cities that are associated with id 16. States and cities are contained in seperate tables.

My problem is I tried to do it with onchange='submit()' but it submits my form and I need it to refresh it so the contents of dropdown2 contain what is needed from the selection in dropdown1.

I'm not good with js so any help is appreciated. TIA!

Dark_Wizard
01-21-2004, 09:18 AM
>> Bump <<

Anyone?

Dark_Wizard
01-22-2004, 06:43 PM
Ok...can someone explain this to me? Why does $_REQUEST work fine with onchange='submit()' but $_GET does not?