Results 1 to 3 of 3

Thread: Drop Down

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    Drop Down

    Hi,

    I want to add the results or a sql query to a drop down menu. Easy right! well this is the hard part. When you have a selected a option. I want it to adjust a second drop down menu. I'll explain more

    I'm making a online gallery!

    I have a table for categories and another for sub categories

    My first query will be listing all the categories. Once I have selected one and want it to list all the results from my second query which is all the sub categories with the category parent being the one selected.

    Any ideas?

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Best way would be to use a javascript that changes what is visible when you change the selection. wouldn't really be a php prob but you could use php if you submit the form everytime the user changes selection, which might be a fuss.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    here's the JS you'll need:
    http://js-x.com/javascript/?run=683
    Have I helped you? Please Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width