Chained combobox filteration

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PhP_Freak
Forum Newbie
Posts: 2
Joined: Mon Jun 01, 2009 12:15 am

Chained combobox filteration

Post by PhP_Freak »

Hello everybody,
I want to make a chained (combo box/drop list) filtration based on previous combo box selection.
I attached an example, kindly take a look in it, it does:
you select a country (US for example) in the first combo box, it filters the second one to shows only US states, if you choose France, it will show only France states ... and so on. and it works very well.

I have 2 questions:
- After the filtration, the first combo box returns to the first value (All) I need it to stick to the selected value.
- I want to make a 3rd combo box to be filtered based on 2nd combo box, i.e: for cities selection for example
- If I am to insert the final selection into the data base, how would I do so?? I can only select but don't know how to insert


Any input here is very appreciated, I really need it
Thanks
Attachments
combo.zip
(1.57 KiB) Downloaded 9 times
PhP_Freak
Forum Newbie
Posts: 2
Joined: Mon Jun 01, 2009 12:15 am

Re: Chained combobox filteration

Post by PhP_Freak »

any help here guys?? :(
Post Reply