
06-04-2002, 12:59 AM
|
|
Inspired Webmaster
|
|
Join Date: Nov 2001
Location: MLK
Posts: 107
Rep Power: 90
|
|
how about doing some function.
function trans_country($code) {
switch ($code) {
case "AF":
$country = "Afghanistan";
break;
case "MY":
$country = "Malaysia";
break;
// and so on..
default:
$country = "";
break;
}// end switch
return $country;
}// end trans_country function
function return_option($code) {
echo '<option value='.$code;
echo "selected";
$country = trans_country($code);
echo ' >'.$country;
echo "</option>";
}
Jadi bila run function
return_option($code);
should do it.. but the long translation of the country still needed.. hope this help..
r0kawa
Last edited by r0kawa; 06-04-2002 at 03:12 AM.
|