Solved

dynamic fill select menu

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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 …

947 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

18 Experts available now in Live!

Get 1:1 Help Now