?
Solved

dynamic fill select menu

Posted on 2006-10-20
7
Medium Priority
?
240 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …
Suggested Courses

741 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