PDA

View Full Version : leading zero in phone number


fourwheeldrifter
10-19-2008, 06:20 PM
every time i put the leading zero in to my profile eg 0845...

it removes it (great if a US user but not for a UK user)

is there anyway of preventing it from doing that, i have tried playing around with class.validator.php but my coding skills are limited and i have had no luck so far

it would be appreciated if someone knew of a solution to this

thanks

fatduke
07-10-2009, 11:26 AM
You could try this in the class.validator.php

Add a variable at top
var $phone2;

Then around line 89
case 'phone':
$phone2 = sprintf("%01d", $phone);
$phone = $phone2;
break;

this will add a leading Zero to the Db.

Hope it helps.

FD