Solved

dynamic fill select menu

Posted on 2006-10-20
7
235 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
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

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 …
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…
The viewer will learn how to count occurrences of each item in an array.
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 …

829 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