...

View Full Version : Dynamic Dropdown Menu?



adilmarwat
10-14-2009, 08:14 AM
I have database in mysql name "prj"
contains 1 table name "inf".

which have 2 fields named "student" & "teacher".

I want to create two drop down menu.

1 for : Select Category [Student] or [Teacher].
when i select student it automatically selects the field of student from database and display in the 2nd dropdown menu.


How can i do this , please help me in this regard.

webworld1
10-14-2009, 12:25 PM
Not so long ago I was in a big search for a solution like this and my search didn't lead to any positive results. I was looking for a dynamic PHP menu that will allow me to play with lots of options and situations. My application required some special code because it's based on member groups and so, my menu was supposed to reflect the permissions attached to each group in part. I was left with some horror solutions and this one explained in this article. Why horror? Well, imagine building a special menu for each group in part. Worst, my software will be sold to people, what if they create 100 groups with various combinations...what's the menu now huh?! The following tutorial is based on my finished work which I'm very pleased with. I'm not just going to paste the code and explain but I will start with a basic example and going up the road of "dynamic"

Web developer (http://www.geeks.ltd.uk/Services/Web-Application-Development.html)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum