SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Chained Selects

  1. #1
    SitePoint Guru
    Join Date
    Apr 2007
    Posts
    685
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chained Selects

    I am trying to do this Javascript/PHP/Mysql script that will have two select boxes. The first select box will display a list of numbers and I want to the second box to appear after the first selection that will run a query such as select * from table WHERE number > (number selected in the first select box).

    Does anyone know of a script or a way to do this?

  2. #2
    SitePoint Addict
    Join Date
    Apr 2011
    Posts
    265
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi
    For that script you need to use Ajax.
    See this script: Multiple Select Dropdown List with AJAX , or look on the net for: "Multiple Select Dropdown List".
    Free: Web Programming Courses HTML, CSS, Flash
    Web Programming: AJAX Course and PHP-MySQL Course video Lessons
    Good JavaScript and jQuery course for beginners

  3. #3
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    71 Post(s)
    Tagged
    0 Thread(s)
    Or search this forum for "multiple dropdowns", as similar questions to this get asked every 3-4 months.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


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
  •