Dependent Drop Down Menus

Discussion in 'PHP' started by SecureCP, May 3, 2010.

  1. #1
    Hey Guys, I'm assuming I'm in the write area since what I'm writing is in php, but may turn out to be javascript. Like I said, not positive but I find this is my best area to ask.

    I'm writing a program that will pull a manufacturer of a vehicle in drop down number 1, and in drop down number 2 a model. If drop down number 1, for instance is porsche, I only want to show porsche models in drop down 2. I'm pulling all makes and models from db, with each in seperate db's but models linked to makes with the makes primary key.

    I hope that makes sense. If anyone could even just kick me in the right direction, it would be fantastic.
     
    SecureCP, May 3, 2010 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    i think your in the right category, you can use ajax for your concern.
     
    bartolay13, May 4, 2010 IP
  3. yoursanjay

    yoursanjay Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    There is a example below of just same functionality but here I have used some different names in the drop down. Just try to get the logic.

    1. File: dd.php

    2. File: dd-check.php

    3. SQL:

     
    yoursanjay, May 4, 2010 IP
  4. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Greatly, greatly appreciate this! Thanks so much. Sometimes this place is better than school. :)
     
    SecureCP, May 4, 2010 IP