SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Manchester
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    2 in drop menu with php sql selected options set

    I've tried searching the forums extensively for this, but to no avail, so apologies if it's already been covered..

    As the subject of the thread reveals, I want to create two sets of drop down menu's with the contents of the second being triggerred by the option selected on the first. However, I want to retrieve the options set for the 2nd menu via a php/mysql query.

    I.e Menu 1 boasts: Users and Members for options.

    If I select Members, I want a query to run that selects all Members and outputs as via menu options.

    Is there any way to achieve this?

    Thanks.

    Bardi

  2. #2
    SitePoint Enthusiast afgmail's Avatar
    Join Date
    Jan 2005
    Location
    Houston, TX
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have used Matt's script written in javascript combined with queries running in ASP. There is an example here.
    You can easily add it to your PHP/MySQL page.
    Hope this helps!
    Scan completed....
    Brain not found.
    filecabin.com : Notepad2

  3. #3
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One way is to make the selection reload the page with the second list.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


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
  •