Jump to content

Edit History

c64girl

c64girl

On 8/14/2023 at 8:26 AM, AddWeb Solution said:

Hi,

Try this:

In /js/validate.js file,

function validate_isPhoneNumber(s)
{
    var reg = /^[0-9]{9}$/;
    return reg.test(s);
}

In /classes/Validate.php

public static function isPhoneNumber($number)
{
    return preg_match('/^[0-9]{9}$/', $number);
}

Once you made the above changes, Clear the cache and check If it works!

Thanks!

 

 

Thank You for idea but it still not working after making changes and clear cache.

 

 

 

obraz.png.79b13d4744afb9d4312c7a30e59ad0b5.png

c64girl

c64girl

On 8/14/2023 at 8:26 AM, AddWeb Solution said:

Hi,

Try this:

In /js/validate.js file,

function validate_isPhoneNumber(s)
{
    var reg = /^[0-9]{9}$/;
    return reg.test(s);
}

In /classes/Validate.php

public static function isPhoneNumber($number)
{
    return preg_match('/^[0-9]{9}$/', $number);
}

Once you made the above changes, Clear the cache and check If it works!

Thanks!

Still not working.

 

obraz.png.79b13d4744afb9d4312c7a30e59ad0b5.png

×
×
  • Create New...