Tuesday, August 23, 2011

City country example with ajax and php

"
Jquery and PHP

Test Page

Country
City
Please select one city
"

$country = $_REQUEST['country'];
switch ($country)
{
case 'ie':
$countries = array('city1_ie','city2_ie');
break;
case 'en':
$countries = array('city1_en','city2_en');
break;
default:
$countries = false;
}
if(!$countries) echo "There is no city";
else
// echo '';
echo '';


?>

No comments: