Dynamic List

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
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Dynamic List

Post by Kingo »

Hello,
I want to implement the following. Any ideas are really appreciated.
I 'm building a web site with the following features.
I have a database with Vehilce Year, Make, Model etc.
Initially only the year list box should be displayed. When the user selects a year a list box below it should be displayed with the "Make" and when the user selects the "Make", the model for that Make should be displayed in the list box below it.
I have never done this before. Any ideas are really appreciated.

Thanx in advance.
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Hello Kingo. A good thing to have would be a backend database, or else a datafile. Each time the user selects a make, the page is refresed with the drop-down list for the corresponding models. Not too difficult to make, but it does require some work witht he db setup.

Good luck!
Post Reply