Lagging behind the first php+mysql province, city, prefecture level 3 linkage non-refresh menu source code using ajax technology_PHP tutorial

WBOY
Release: 2016-07-21 15:58:26
Original
792 people have browsed it

Absolutely original
Test address: http://www.mlmm.cn/mypage/?name=ceshi

Test page code:

Copy codeThe code is as follows:




php+ajax dynamically generates a drop-down menu




{$regionss(People's Republic of China)}




regionss Function code:
QUOTE:
Copy code The code is as follows:
//Province and city 3-level linkage drop-down menu function regionss province.city.region
function regionss($country="People's Republic of China")
{
global $db; $i = 1;
$text=" ";
id="select2" name= "select2" onchange="startRequesta()" style="width:90px;">n";
$text.="