self populating drop down boxes

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
1EightT
Forum Newbie
Posts: 1
Joined: Tue Apr 20, 2004 10:54 pm

self populating drop down boxes

Post by 1EightT »

Guys I have an easy one for you i'm guessing. I've searched the internet high and low and have come up empty, but i'm sure i'm just overlooking the answer right in front of me.

Does anyone have a piece of code I can look at that does the following:

Displays a drop down box on a page where the drop down content is grabbed from a mysql database. There is then a second drop down box whos contents depends on the value selected i nthe first box. I'm pretty sure javascript would be used for this. The final values are then sent over to another page.

As an example lets say you have a car site. In the first box would be the make of the car eg: Honda, Volkswagen, etc

If the user selects volkswagen, then the second box displays golf, GTI, Jetta, etc

Thanks in advance for the help guys. I'm a noob at this stuff but hey, you have to start somewhere right?
User avatar
ne0c0dec
Forum Newbie
Posts: 1
Joined: Tue Apr 20, 2004 11:13 pm

Post by ne0c0dec »

Post Reply