ok thx. just for the record i summarize:
1) with promaps it is not possible to have the direction function with more than two points. thx for the input with stackoverflow.
2) i haven't understand the session answer yet.
i start the session with this code:
<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["ServiceID"] = "".$_GET['ID'] ."";
}
?>
i put the id with a session in the url with this code:
<?php
if(isset($_POST["Route_submit"])) {
header("Location: index.php?ID=".((isset($_SESSION['ServiceID']))?$_SESSION['ServiceID']:"")."&Route=".((isset($_SESSION['RouteID']))?$_SESSION['RouteID']:"")."&tab=2");
}
?>
where should i place your code?