SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drop down menu question

    I want to make around 3 drop down menus ... where the content in each drop down list is based on the users previous selection from the previous drop down menu ..
    can this be done?

    for example, suppose we have the following information
    Honda : <model names> from 1990-2005
    Toyota: <models name> from 2000-2005
    ford : <model names> from 2000-2003
    etc....

    the first drop down menu is of course "Make" and the next is "year" then "Model"

    how can i make it so that if the user selects Honda then only information about honda appears in the next two menus .. and when they select year ... then only Honda models from that year will appear in the final menu, "model"

    thanks for the help

  2. #2
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that can be done via javascript with some NASTY multi dimensional arrays ...... over at webreference.com they used to have a relational drop down menu system that was REALLY cool but a nightmare to work with ..... I used it several years ago ....... damn thing took me 2 weeks to just figure out!

    Are you using any server-side languages? With PHP or Java or ASP this could be done a LOT easier ..... Im actually doing one right now that is almost exactly what you are doing but Im doing it in JSPs

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Portsmouth UK
    Posts
    1,499
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •