Karyna Posted August 24, 2012 Share Posted August 24, 2012 hi guys im drivn nuts i was sure was easy but i do get it.. i have a table like this item clasif out ----------------------------------------- apple fruit lbs orange fruit lbs pumpkins vegetable box banana fruit lbs pineapple fruit box i did 3 drop menus clasif item out when the user select from 1st drop let say "fruit" the second drop must filter the database to all fruits and when select let say orange from 2nd drop the 3rd must contain just lbs... i try many ways but no one give me that filter!!! plss will sombody helppp?? Quote Link to comment https://forums.phpfreaks.com/topic/267529-drop-menus-in-cascade/ Share on other sites More sharing options...
scootstah Posted August 24, 2012 Share Posted August 24, 2012 SELECT * FROM table WHERE clasif = 'fruit'; SELECT * FROM table WHERE out = 'lbs If you want to do it without a page reload you'll need to use AJAX. Quote Link to comment https://forums.phpfreaks.com/topic/267529-drop-menus-in-cascade/#findComment-1372147 Share on other sites More sharing options...
Barand Posted August 24, 2012 Share Posted August 24, 2012 If you want to do it without a page reload you'll need to use AJAX. You can do it just with javascript, for example the baaSelect class in my sig Quote Link to comment https://forums.phpfreaks.com/topic/267529-drop-menus-in-cascade/#findComment-1372151 Share on other sites More sharing options...
scootstah Posted August 24, 2012 Share Posted August 24, 2012 You can do it just with javascript Yeah, but then you'd have to fetch everything for JavaScript to work with. Quote Link to comment https://forums.phpfreaks.com/topic/267529-drop-menus-in-cascade/#findComment-1372153 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.