nashsaint Posted May 19, 2008 Share Posted May 19, 2008 Hi, Can you help me build a multiple pull down menu where the next pull-down is dependent from the previous one? Say I have these: Category 1 - List 1 - List 2 - List 3 Category 2 - If list 1 Display this - and this.... - If list 2 display this.. - If list 3 display this.. .... ..... I hope you get the idea. Can you help me out please? thanks. Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/ Share on other sites More sharing options...
bilis_money Posted May 19, 2008 Share Posted May 19, 2008 http://w3schools.com/css/default.asp Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/#findComment-544667 Share on other sites More sharing options...
nashsaint Posted May 19, 2008 Author Share Posted May 19, 2008 Thanks, but can you be a little specific please? thanks. Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/#findComment-545041 Share on other sites More sharing options...
corbin Posted May 19, 2008 Share Posted May 19, 2008 Hrmmm... Do the two selects need to be on the same page? Do you care if the page reloads? Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/#findComment-545067 Share on other sites More sharing options...
nashsaint Posted May 19, 2008 Author Share Posted May 19, 2008 Yes, if possible i want the selects to be on the same page, literraly one after another. I don't mind if page reloads as long as it does the job. Thanks. Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/#findComment-545112 Share on other sites More sharing options...
gizmola Posted May 19, 2008 Share Posted May 19, 2008 You can do what you want using Ajax/Javascript. It's non-trivial, but not incredibly difficult either. If the dependency on the dropdowns is derived from the database, then Ajax is a good way to handle it --- no reloads required. Hopefully you are able to do some javascript coding. Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/#findComment-545121 Share on other sites More sharing options...
nashsaint Posted May 19, 2008 Author Share Posted May 19, 2008 selections from Options menu are not extracted from sql but the result is. Whatever the user selected from the options will then be queried to the sql and display the result. Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/#findComment-545129 Share on other sites More sharing options...
BlueSkyIS Posted May 19, 2008 Share Posted May 19, 2008 2 options: 1. submit the form whenever a selection is made, filling the next selection before sending the page back. reloads page 2. Ajax: dynamically update the next selection based on the first. doesn't reload page Link to comment https://forums.phpfreaks.com/topic/106272-multiple-pull-down-menu/#findComment-545209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.