<div dir="ltr"><div>the code below is a layer in map file  in this code i want create a query in postgis for shortestpath but a the number <font color="#ff0000">77</font> ,<font color="#ff0000">388</font> is the source and target and the result create successfully but  my problem is how insert  the number ( 77, 388)  in template file or insert by user </div><div>how insert from html file </div><div> </div><div><br></div><br><div><br></div><div><div>LAYER</div><div>    CONNECTION "host=localhost   dbname=network  user=postgres  password=021555  port=5432"</div><div>    CONNECTIONTYPE POSTGIS</div><div>    DATA "geom from <font color="#bf9000">(SELECT  *  from pgr_dijkstra(</font></div><div><font color="#bf9000"><br></font></div><div><font color="#bf9000">                'SELECT gid as id , source , target , cost FROM tehran' ,</font></div><div><br></div><div>               <font color="#00ff00"> </font><font color="#ff0000">77</font>, <font color="#ff0000">388</font><font color="#00ff00">,</font><font color="#bf9000"> false , false ) a  LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo using unique gid using srid=4326  "</font></div><div>    NAME "shortestpath"</div><div>    PROJECTION</div><div>      "proj=utm"</div><div>      "zone=39"</div><div>      "datum=WGS84"</div><div>      "units=m"</div><div>      "no_defs"</div><div>    END # PROJECTION</div><div>    STATUS ON</div><div>    TEMPLATE "query"</div><div>    TILEITEM "location"</div><div>    TYPE LINE</div><div>    UNITS METERS</div><div>    CLASS</div><div>      NAME "Class (0)"</div><div>      STYLE</div><div>        COLOR 255 128 64</div><div>        SIZE 8</div><div>        WIDTH 10</div><div>      END # STYLE</div><div>    END # CLASS</div><div>  END # LAYER</div></div><div><br></div><div><br></div><div><br></div></div>