开发者

dynamic drop down combo in php

开发者 https://www.devze.com 2022-12-20 19:25 出处:网络
i have a category drop down combo in my php page which shows categories like math and science. i want to show another subcategory combo box which will show subcategory of selected category, for exampl

i have a category drop down combo in my php page which shows categories like math and science. i want to show another subcategory combo box which will show subcategory of selected category, for example if user select math as category then subcategory combo should show subcategories of math like algebra, trigonometry and if user select science as category then subcategory combo should show subcategories of science like physics, biology, zoology etc. so i want this h开发者_C百科appen dynamically coz i am retrieving subcategory from database on the basis of selected category. how can i do this


You will have to use Ajax for that, see this php ajax tutorial.

http://www.w3schools.com/PHP/php_ajax_database.asp

0

精彩评论

暂无评论...
验证码 换一张
取 消