rockinaway Posted April 19, 2007 Share Posted April 19, 2007 I have 2 dropdowns on one page, and well the second is controlled by the first. What I want is the first dropdown to select the value and then an instant MySQL statement to populate the second dropdown.. any help on how to do this? Quote Link to comment https://forums.phpfreaks.com/topic/47786-update-dropdown-instatly/ Share on other sites More sharing options...
Ninjakreborn Posted April 19, 2007 Share Posted April 19, 2007 Ajax. In order to actually get it to happen you need a .php page somewhere that runs the query. Basically have it when they select something in the drop down menu, it uses javascript (ajax concepts) to get that php page (passing the id to it) then that php retrieves the data and now it's available. From there, just use that data to instantly update the second drop down menu. http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=ajax+drop+down+menu&spell=1 Quote Link to comment https://forums.phpfreaks.com/topic/47786-update-dropdown-instatly/#findComment-233449 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.