$sCellPhone = FilterInput($_POST["CellPhone"]); $sEmail = FilterInput($_POST["Email"]); $bSendNewsLetter = isset($_POST["SendNewsLetter"]); $nLatitude = 0.0; $nLongitude = 0.0; if (array_key_exists("Latitude", $_POST)) { $nLatitude = FilterInput($_POST["Latitude"], "float"); } if (array_key_exists("Longitude", $_POST)) { $nLongitude = FilterInput($_POST["Longitude"], "float"); } // if ($bHaveXML) { // Try to get Lat/Lon based on the address $myAddressLatLon = new AddressLatLon(); $myAddressLatLon->SetAddress($sAddress1, $sCity, $sState, $sZip); $ret = $myAddressLatLon->Lookup(); if ($ret == 0) { $nLatitude = $myAddressLatLon->GetLat(); $nLongitude = $myAddressLatLon->GetLon(); } else { $nLatitude = "NULL"; $nLongitude = "NULL"; } // } if (is_numeric($nLatitude)) { $nLatitude = "'" . $nLatitude . "'"; } else { $nLatitude = "NULL"; } if (is_numeric($nLongitude)) { $nLongitude = "'" . $nLongitude . "'";