Solved

dynamic fill select menu

Posted on 2006-10-20
7
237 Views
Last Modified: 2013-12-12
I need javascript/php to dynamically fill a select menu based on the choice of the first select menu, from choices from a mySQL db.

ie.

mySQL JobType

1   IT
2  Cookery

mySQL JobCate

1 Oracle Admin
1 Java Expert
2 Chef
0
Comment
Question by:kornflake
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 17

Expert Comment

by:akshah123
ID: 17774510
0
 

Author Comment

by:kornflake
ID: 17774706
Nah, no good,....need something quick --> a piece of javascript that'll need the value of the first select menu onChange and run a mySQL query which will get the results of id (value) and echo them in a second select menu..I'll up the points for someone who can do this fast...
0
 
LVL 35

Accepted Solution

by:
Raynard7 earned 125 total points
ID: 17896341
For an example of a cascading drop down menu with php and mysql please see
http://codewalkers.com/seecode/522.html
0
 
LVL 35

Expert Comment

by:Raynard7
ID: 18263486
hi, my answer was correct as it did everything that the author asked for - if they required further explanation, or help customising it they just hada to ask.
0
 
LVL 14

Expert Comment

by:huji
ID: 18467279
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Accept: Raynard7 {http:#17896341}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Huji
EE Cleanup Volunteer
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question