Files
CRM/Geolocalisation.php
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

10 lines
464 B
PHP

<?php
require_once 'include/utils/utils.php';
if($_SERVER['REQUEST_METHOD'] == "POST" and isset($_POST['Enregistrer']))
{
$adb->pquery("UPDATE vtiger_accountscf SET cf_986=". $_POST['Latitude'] . ",cf_988=". $_POST['Longitude'] ." WHERE accountid=". $_POST['idUser'] ."");
header("Location: index.php?module=Accounts&view=Detail&record=". $_POST['idUser'] ."&app=MARKETING");
}else{ header("Location: index.php");}
?>