populating second drop down list box based on the selection of the first – PHP

  php

Q(Question):

Hi i m trying to create two drop down list boxes where the second drop downl list box is populated based on the selection of the first one.I have searching the net for days and even the scripts i downloaded don’t seem to be working..Can anyone help me plz…..Its urgent…I have deadline approaching….

A(Answer):

I believe this is referred to in the programming world as "chained dropdowns" or "chained select boxes." It can be done on the server-side (i.e. PHP), or the client-side (JavaScript).

A(Answer):

any suggestions for javascript?

A(Answer):

Have you tried Googling the terms that I’ve given you? There are a lot of resources on this.

A(Answer):

Thanks…I managed to get it….
http://www.dreamincode.net/forums/showtopic41403.htm

A(Answer):

I’ve a request to kovik, if you don’t know the solution please stop asking others to google the query, people come to the forum after they’ve searched all over. Simple if you don’t have any solution please stay away. Thanks

PS: If someone has asp codes for the query. Thanks

A(Answer):

Yes, I’m sure that the OP Googled it, especially since after I gave him a query to search for and he found what he needed.

And I do know the solution… I built a JavaScript solution to this a while ago, but I still haven’t tested it much, so I haven’t published it yet. It builds a chained selection based on a single selection drop down, so that it works with or without JavaScript, and doesn’t rely on server-side requests to do so.

I may even publish it in this thread when I feel it’s polished enough. I was planning on publishing it in the next few days, anyway.

I have a request for you: Don’t hijack other posters’ threads, and don’t necro old threads.

A(Answer):

Here it is:
Chained selection drop down plugin for jQuery

LEAVE A COMMENT