国家/城市/州验证 [英] Country/City/state validation

查看:101
本文介绍了国家/城市/州验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用PHP和jQuery做以下事情

I want to do the following things using PHP and jQuery

https://www.careerbuilder.com/share/register.aspx ?sc_cmp1 = JS_LoginASPX_RegNow

步骤

  1. 从下拉列表中选择一个国家.
  2. 城市下拉列表将自动填充所选国家/地区的城市列表.
  3. 如果该国家/地区可以使用州/省,则该州的列表将与该国的所有州/州列表一起显示.

然后,我需要验证所选的城市,州和国家/地区.

Then I need to validate the selected city, state and country.

你有什么主意吗?

预先感谢

推荐答案

如果您想让外国人更容易输入地址,则只需提供一个文本字段,即可在其中输入地址输入为格式化文本.很少有国家使用州(或类似名称)作为地址的一部分,我不明白为什么要提供城市的下拉列表.德国城市列表(或邮政地址中更正确,有效的地名)将包含大约23,000个条目.您认为更简单的方法是,输入地址或尝试在这样的列表中找到地名_

If you want to make it easy for foreigners to enter an address, then please simply offer a text field, where the address can be entered as formatted text. Very few countries are using a state (or something similar) as part of the address and I don't understand why you want to offer a drop-down list with cities. A list of German cities (or more correct, valid place names in a postal address) would contain some 23,000 entries. What do you think is more easy, enter the address or try to find the place name in such a list_

这篇关于国家/城市/州验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆