14/04/2007, 20:06
|
| | | Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 21 años, 4 meses Puntos: 21 | |
Re: actualizar combo archivo getCities.php
<?php
if(isset($_GET['countryCode']))
{
switch($_GET['countryCode'])
{
case "no":
echo "obj.options[obj.options.length] = new Option('Bergen','1');\n";
echo "obj.options[obj.options.length] = new Option('Haugesund','2');\n";
echo "obj.options[obj.options.length] = new Option('Oslo','3');\n";
echo "obj.options[obj.options.length] = new Option('Stavanger','4');\n";
break;
case "dk":
echo "obj.options[obj.options.length] = new Option('Aalborg','5');\n";
echo "obj.options[obj.options.length] = new Option('Copenhagen','6');\n";
echo "obj.options[obj.options.length] = new Option('Odense','7');\n";
break;
case "us":
echo "obj.options[obj.options.length] = new Option('Atlanta','8');\n";
echo "obj.options[obj.options.length] = new Option('Chicago','9');\n";
echo "obj.options[obj.options.length] = new Option('Denver','10');\n";
echo "obj.options[obj.options.length] = new Option('Los Angeles','11');\n";
echo "obj.options[obj.options.length] = new Option('New York','12');\n";
echo "obj.options[obj.options.length] = new Option('San Fransisco','13');\n";
echo "obj.options[obj.options.length] = new Option('Seattle','14');\n";
break;
}
}
?>
__________________ gerardo |