jkkenzie Posted August 9, 2009 Share Posted August 9, 2009 Hi! I have a database for cars. My problem is making sure that when a person selects a make of a car on a select box, the selct box for model displays only the model for that particular make without having to wait for the page to load. I got some javascript for that but i could not get the $_POST for the select field, it was showing null thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/169458-multiple-select/ Share on other sites More sharing options...
bundyxc Posted August 9, 2009 Share Posted August 9, 2009 I personally have no clue what you're asking. Can you explain to us EXACTLY what you need? Quote Link to comment https://forums.phpfreaks.com/topic/169458-multiple-select/#findComment-894065 Share on other sites More sharing options...
jkkenzie Posted August 9, 2009 Author Share Posted August 9, 2009 There are two select inputs on a form. 1.Make 2.Model When i select a make e.g Toyota on the MAKE select input, I would like the MODEL select input to have ONLY the models for Toyota. I hope that helps. Quote Link to comment https://forums.phpfreaks.com/topic/169458-multiple-select/#findComment-894086 Share on other sites More sharing options...
wildteen88 Posted August 9, 2009 Share Posted August 9, 2009 You'll want to use AJAX for this. Here is an example script Quote Link to comment https://forums.phpfreaks.com/topic/169458-multiple-select/#findComment-894088 Share on other sites More sharing options...
jkkenzie Posted August 9, 2009 Author Share Posted August 9, 2009 Why is it not working? I have placed the files properly but the select does not work . Quote Link to comment https://forums.phpfreaks.com/topic/169458-multiple-select/#findComment-894119 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.