问题描述
我想创建一个降使用PHP作为Web服务和HTML国家名单下来。我不想写一个数组,但通过使用API来创建列表。由于在接下来的下拉我要显示所选择的国家,使用previous选定的状态下拉。
I want to create a drop down of country list using PHP as Web Service and HTML. I don't want to create the list by writing an Array but by using an API. As in the next drop down I want to display the states of the selected Country, selected using the previous drop down.
推荐答案
我们正在使用GeoDataSource下拉列表生成各国城市名称和状态,方便,但它不是一个免费的版本。也许你可以在的.
We are using GeoDataSource drop down list to generate city names by countries and states, handy but it is not a free version. Maybe you can have a look on their tutorial or sample codes at http://www.geodatasource.com/software/world-major-cities-2013-drop-down-list-source-codes.
这篇关于API调用国家和国的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!