making two drop down one based on another
Posted: Thu Sep 14, 2006 11:28 pm
i have table maincategory name as maincat_id ,maincat_name
then i have sub category as subcat_id,subcatname,maincat_id
what i want is two dropdown
in first the rows from main category will be displayed and in second drop based on main categoy on first rows from subcategory(of that main category) will be displayed
and then main_catid and sub_catid passed to another page
is there any way of doing it
may be not using too much of javascript(or may be less javascript)
Note: i saw one similar tutorial in this site but its too complicated and its not using mysql database
then i have sub category as subcat_id,subcatname,maincat_id
what i want is two dropdown
in first the rows from main category will be displayed and in second drop based on main categoy on first rows from subcategory(of that main category) will be displayed
and then main_catid and sub_catid passed to another page
is there any way of doing it
may be not using too much of javascript(or may be less javascript)
Note: i saw one similar tutorial in this site but its too complicated and its not using mysql database