View Single Post
  #2 (permalink)  
Old 06-04-2002, 12:59 AM
r0kawa r0kawa is offline
Inspired Webmaster
 
Join Date: Nov 2001
Location: MLK
Posts: 107
Rep Power: 90
r0kawa is on a distinguished road
Send a message via Yahoo to r0kawa
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
__________________
Zenpipe Web Hosting - Peace Of Mind
RM 60 .com.my .net.my .org.my - CODE "ZPMYNIC"

Last edited by r0kawa; 06-04-2002 at 03:12 AM.
Reply With Quote