Update formatPhoneNumber php function to include other country formatting, updated phone inputs to incoude country code

This commit is contained in:
johnnyq
2025-03-25 18:45:24 -04:00
parent 4c85db5e49
commit 218fd2dcdc
16 changed files with 437 additions and 279 deletions

View File

@@ -5,8 +5,10 @@ $client_id = intval($_POST['client_id']);
$name = sanitizeInput($_POST['name']);
$title = sanitizeInput($_POST['title']);
$department = sanitizeInput($_POST['department']);
$phone = sanitizeInput($_POST['phone']);
$phone_country_code = preg_replace("/[^0-9]/", '', $_POST['phone_country_code']);
$phone = preg_replace("/[^0-9]/", '', $_POST['phone']);
$extension = preg_replace("/[^0-9]/", '', $_POST['extension']);
$mobile_country_code = preg_replace("/[^0-9]/", '', $_POST['mobile_country_code']);
$mobile = preg_replace("/[^0-9]/", '', $_POST['mobile']);
$email = sanitizeInput($_POST['email']);
$notes = sanitizeInput($_POST['notes']);