I am receiving data by post from an android system, when responding with echo
, this data reaches android. Now I want to use this data to use it in an html page, how can I do it? By the way, I use the Slim framework.
<?php
require 'Slim/Slim.php';
\Slim\Slim::registerAutoloader();
$sistema = new \Slim\Slim();
$sistema->get('/', function() {
echo("Hola mundo!");
});
$sistema->post('/gps', function() {
$longitud = $_POST['long'];
$latitud = $_POST['lat'];
echo("Posición: " . $longitud . " " . $latitud);
});
$sistema->run();
?>