Mask Input phone number in PHP -
i new php want mask input phone number somehow wouldn't allow javascript or jquery
$_session["oh"]["phone"]=(empty($_session["oh"]["phone"]))?$_cookie["phone"]:$_session["oh"]["phone"];
follow kind of patterns mask phone , validate
$pattern = "/^([1]-)?[0-9]{3}-[0-9]{3}-[0-9]{4}$/i"
afaik , have used mask() jquery helps validate
$("#phone").mask("(999) 999-9999");
its handy use
Comments
Post a Comment