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");} ?>