Class: Cascade Dropdown 3 Levels
The Class can be used to Fetch the record from the database and load it in 3 different list boxes, where are the Values of the child will be depended to the Parent. Here we have 3 Levels, Like illustrated below.
Type —————–> Brand ————-> Model.
Its like when we select the Type respective Brand list will be loaded, when the use makes the choice in the Brand dropdown then the Model is made avaiable based on the previous box value.
The Class is Similar to my Cascade DropDown , the Difference between both ths class is the level of List boxes. In my older class, I have given only two list boxes, where here i am dealing with three at same time.
Reason : The Class will avoid Page reload while adding the data to the List Box. So the Users will not feel bad using your page. They will not have any burdens
Resource:
Class Home
Online Demo
Looks good, but it’s not on phpclasses.org. The 2 list version is, but I’m looking for one to do make->model->option and this would be great.
An oversight?
Good work I found your script on php classes site. It fits to my needs thank you.
Looks good. Is it possible to extend it a bit further so that when the model has been selected it also provides things like price, year of manufacture, size of paper, etc. in seperate text fields
Very nice work! I’ve been looking for a good chained selector class for a while and this fits the bil nicely. I’ve extended it to 4 levels and I’m now working on allowing users to add fields as necessary. For example, if Type1->brand1 were selected and the user had a model6, which is not an option, the user coud type ‘model6′ in a text box below the selectors and hit submit and the class would add in the contents of the test box to the lowest-level unslected selector.
I’ll send you a copy of the scrip when I’m done, if you’d like.
Thanks a lot for the great work.
-Chris
Hmm.. Look’s amazing
The demo link() pops up with error
DynamicDropDown - The class is to Fetch values from the DB and display in 3 ListBox.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/gobinath/public_html/class/DynamicDropDown/DynamicDropDown.class.php on line 92
Please go through it.Error
Hi,
I have just downloaded listbox 3 level script code from your contribution.
Thanks to it.
Keep up!
Congrats to your family & wish your a baby a good health & prosperous life.
with best regards
G.Devarajan
I am going to restore all the demo asap. so that it will be available for you guys.
[...] Post : http://www.gobinath.com/blog/2005/05/07/class-cascade-listbox.html del.icio.us Digg [...]
Quickform already has this cascading option, you can extend to have as many lists as you can make dimensions in arrays. for instance I have 6 lists cascading and it just depends on a 6 dimensional array. Quickform is the shiznit.