sgsandy Posted December 2, 2012 Share Posted December 2, 2012 Hi I am an absolute starter in php and have little to no knowledge on JS, ajax or any other scripting tool. I thought that I will be able to write a whole project based on little php knowledge that I have. But am stuck at one place. I have one select box which contains the list of projects. On the basis of project selected I need to filter out a list of equipment from the equipment table and display it in another select box. This all needs to be done before the Submit. Having searched in google for some help I find that it seems to be simply not possible with php. I need to put in some JS or AJAX code to fulfill this task. Can anybody share with me any sample code or any solutions for this problem. Project and Equipment table are related on Project Code. regards sandy Quote Link to comment https://forums.phpfreaks.com/topic/271476-filter-select-list-based-on-selection-of-another-select-list/ Share on other sites More sharing options...
Barand Posted December 2, 2012 Share Posted December 2, 2012 If you don't want to use Danvermann's method you could take a look at the baaSelect link in my sig. (only works with numeric primary keys) Quote Link to comment https://forums.phpfreaks.com/topic/271476-filter-select-list-based-on-selection-of-another-select-list/#findComment-1396889 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.