<?php include 'locations_repo.php'; error_log("save_location"); error_log(json_encode($_POST)); $locations_repo = LocationsRepository::getInstance(); $locations_repo->addLocation($_POST["lat"], $_POST['lng']); ?> <html> <body>Ubicacion recibida: <?php echo $_POST["lat"] + "," + $_POST['lng']; ?> </body> </html>
<?php include 'contacts_repo.php'; include 'locations_repo.php'; ContactsRepository::getInstance()->reset(); LocationsRepository::getInstance()->reset(); header("Location: ./index.php");