It's not difficult to write some code to translate phone numbers at 
registration time, this should work for almost all cases:

if(ereg("^\+([0-9]{2,3})([^0-9]+)(.+)$", $phone, $tmp))
         $phone = "+".$tmp[1].".".$tmp[3];

else if(ereg("^(\+*)".$pcod."([^0-9]*)(.+)$", $phone, $tmp))
         $phone = "+".$pcod.".".$tmp[3];

else if(ereg("^(\+*)([^0-9]*)(.+)$", $phone, $tmp))
         $phone = "+".$pcod.".".$tmp[3];

else
         $phone = "+".$pcod.".".$phone;

Of course you need your customer's international phone code on $pcod 
according to his country (simply an array with them). In this way you can 
guess how he has written numbers, and in the case he didn't provide 
international code, you can provide it for him.

The problem I see is what to happen when a customer updates contact info in 
all domains in a profile, mixing com's, biz's and info's. Here the 
conversion for .info and .biz only can be done at the server side.

Regards,

David S�nchez
Veloxia Network,S.L.

[EMAIL PROTECTED]

Reply via email to