DataRater Posted March 30, 2010 Share Posted March 30, 2010 I want to have one field which has a select for a continent. I then want another to be dependent on that value so it only displays fields which are in that continent. Can it be done? If it can, how? Please Help Stephen Quote Link to comment Share on other sites More sharing options...
xenophobia Posted March 31, 2010 Share Posted March 31, 2010 If im not wrong, your requirement is... Continents: [Asia V] Countries: [Abkhazia V] So when user select Asia, it will display all the countries in Asia. If selected was Europe, the country list will change to French, Italy, England and so on... You can do that with AJAX which loan the country list by passing the continent's name to a PHP script. The PHP script will grab the country list from any source like database or any webservice provider. Lastly, the PHP script will return the data in either XML or JSON (preferable) format to the JavaScript client and interpret it on the list. Quote Link to comment Share on other sites More sharing options...
DataRater Posted March 31, 2010 Author Share Posted March 31, 2010 Thanks!!! Quote Link to comment 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.