Solved

dynamic fill select menu

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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 …
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
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 …

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now