您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php AJAX实例根据邮编自动完成地址信息_PHP

2024/6/19 21:14:40发布37次查看
ajax
enter a united states zipcode, then tab
enter zipcode:
city:
state:
以上是客户输入页面,下面是服务端的处理页面'zipcode.php
当客户输入一个postcode后,zipcode.php就接收到它,然后进行从数据表中取出对应的资料,再按一定的格式返回给客户端(此处是以 | 分隔)。最后客户端接收返回的资料,显示在页面上。
if(response.indexof('|' != -1)) {
update = response.split('|');
document.getelementbyid(city).value = update[0];
document.getelementbyid(state).value = update[1];
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product