By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,240 Members | 791 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,240 IT Pros & Developers. It's quick & easy.

To populate a drop down menu by the option chosen in other

P: 1
hello
i need a help regarding populating a drop down menu from the values in an database when a particular option is chosen in the previous menu.
let there be two menus one list the type of employee for example salesman, manager, supervisor and others ..
i want to build two drop down menus . one containing the type of employee and the other their names . so in menu with names , the names should only appear when some employee type has been selected and only those name which are under such category.
please help i am very new to php and i am unable to write a code..
Saurabh
May 31 '07 #1
Share this Question
Share on Google+
1 Reply


ak1dnar
Expert 100+
P: 1,584
Please tell do you have the table structure for this.
Example:
Table >> JobTitles
Table >> Employees
With the correct relationship with the tables.

Here is a simple example to start over.

http://www.plus2net.com/php_tutorial/list-table.php

http://www.plus2net.com/php_tutorial..._down_list.php
May 31 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.