Page 1 of 1

Dynamic Dropdown Menu?

Posted: Wed Oct 14, 2009 12:28 am
by adilmarwat2004
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.

Re: Dynamic Dropdown Menu?

Posted: Wed Oct 14, 2009 12:42 am
by Mirge
What have you tried so far? I assume you're wanting to utilize AJAX so that it's able to do that without a page refresh. I would highly recommend using jQuery for it.

Re: Dynamic Dropdown Menu?

Posted: Wed Oct 14, 2009 1:37 am
by adilmarwat2004
How it can be possible with jquery. i have no experience of jquery.

Re: Dynamic Dropdown Menu?

Posted: Wed Oct 14, 2009 1:46 am
by Mirge
Well I'm not going to write the script for you. If you're wanting to use Ajax, I highly recommend jQuery... see the link in my previous post for documentation & downloads.

Re: Dynamic Dropdown Menu?

Posted: Wed Oct 14, 2009 1:46 am
by pbs
You can follow my "PBS" signature URL for multi level menu usinp PHP / MYSQL / JAVASCRIPT. You may find it helpfull