<div dir="ltr"><div><div><div>Hi, <br>thanks for the answers.<br><br></div>I have 
solved the error closing the tag  <input type="hidden" name="program"
 value="/cgi-bin/mapserv"> on the inizalization file.<br>
<br></div>To change method from POST to GET don't resolve nothing if I 
have understood, the difference bettween POST and GET, would be that in 
the first case the attributes that you pass are visible, instread with 
POST they aren't visible in the map url.<br>
<br></div>Enrico</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-14 15:42 GMT+02:00 Krishna Priya Patury <span dir="ltr"><<a href="mailto:krishna.patury@gmail.com" target="_blank">krishna.patury@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You could try changing the form method from POST to GET in the initialization file(secondo_i.html) to see what the map value is being sent as. </div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">
On Wed, May 14, 2014 at 9:29 AM, Rahkonen Jukka  (Tike) <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">






<div vlink="purple" link="blue" lang="FI">
<div>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">I don’t know what really fails because I have never used Mapserver this way. However, the error message seems to be true.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">When using Mapserver trough WMS the same message comes with a request
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><a href="http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities" target="_blank">http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities</a><u></u><u></u></span></p>


<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">If map parameter is used with an invalid value the error message is different<u></u><u></u></span></p>


<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><a href="http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities&map=foo" target="_blank">http://hip.latuviitta.org/cgi-bin/mapserv?service=wms&version=1.3.0&request=getcapabilities&map=foo</a><u></u><u></u></span></p>


<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">Have a look at the code and think if the name of your mapfile really goes into [map].<span><font color="#888888"><u></u><u></u></font></span></span></p>

<span><font color="#888888">
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p></font></span><div><div>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:currentColor currentColor currentColor blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentColor currentColor;padding:3pt 0cm 0cm">
<p class="MsoNormal"><span style="font-family:"Tahoma","sans-serif";font-size:10pt" lang="EN-US">Enrico Fiore wrote:<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<div>
<div>
<p style="margin-bottom:12pt" class="MsoNormal"><span lang="EN-US">Sorry I have sent the first message for error, I conclude it in this post<u></u><u></u></span></p>
</div>
<div>
<p style="margin-bottom:12pt" class="MsoNormal"><span lang="EN-US">the template file text is:<br>
<br>
<!-- MapServer Template </span>--><br>
<html><br>
    <head><title>Seconda Mappa</title></head><br>
    <body><br>
        <form name="the_form" method=GET action="[program]"><br>
            <table width="100%"><br>
                <tr><br>
                    <td width="60%"><br>
                        <input name="img" type="image" src="[img]" width=640 height=480 order=2>                       
<br>
                    </td><br>
                    <td width="40%" align="left"><br>
                        <table border="1" width="300"><br>
                            <tr><br>
                                <td align="center" colspan=3"><br>
                                    <input type="submit" value="Ricarica"><br>
                                </td><br>
                            </tr><br>
                            <tr><br>
                                <td align="center" colspan="3">Zoom</td><br>
                            </tr><br>
                            <tr><br>
                                <td align="right" width="100"><br>
                                    Zoom In<br>
                                    <input type=radio name=zoomdir value=1 [zoom_dir_1_check]<br>
                                </td><br>
                                <td align="right" width="100"><br>
                                    Size<br>
                                    <input type=text name=zoomsize size=2 value=[zoomsize]><br>
                                </td><br>
                            </tr><br>
                            <tr><br>
                                <td align="center" colspan="3"><br>
                                    Pan<br>
                                    <input type=radio name=zoomdir value=0 [zoomdir_0_check]><br>
                                </td><br>
                            </tr><br>
                        </table><br>
                        <hr size="1"><br>
                        <table><br>
                            <tr><br>
                                <td colspan="3"><br>
                                    <input type="checkbox" name="layer" value="Regioni" [Regioni_check]><br>
                                    Regioni<br>
                                </td><br>
                            </tr><br>
                            <tr><br>
                                <td colspan="3"><br>
                                    <input type="checkbox" name="layer" value="Fiumi" [Fiumi_check]><br>
                                    Fiumi<br>
                                </td><br>
                            </tr><br>
                            <tr><br>
                                <td colspan="3"><br>
                                    <input type="checkbox" name="layer" value="Province" [Province_check]><br>
                                    Province<br>
                                </td><br>
                            </tr><br>
                        </table><br>
                    </td><br>
                </tr>            <br>
            </table><br>
            <input type="hidden" name="imgxy" value="320 240"><br>
            <input type="hidden" name="imgext" value="[mapext]"><br>
            <input type="hidden" name="map" value="[map]"><br>
            <input type="hidden" name="program" value="[program]"><br>
        </form><br>
    </body><br>
</html><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p style="margin-bottom:12pt" class="MsoNormal">My question is what I miss in my exercise.<u></u><u></u></p>
</div>
<p style="margin-bottom:12pt" class="MsoNormal">Can anyone help me?<br>
<br>
And sorry for to have split the message in two post.<br>
<br>
With thanks,<u></u><u></u></p>
</div>
<p class="MsoNormal">Enrico<u></u><u></u></p>
<div>
<p style="margin-bottom:12pt" class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p style="margin-bottom:12pt" class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2014-05-14 14:58 GMT+02:00 Enrico Fiore <<a href="mailto:enricofiore80@gmail.com" target="_blank">enricofiore80@gmail.com</a>>:<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<p class="MsoNormal">I tried to create a simple map application whit zoom and pan capabilities, following the instructions contained in the book "Beginning MapServer".<br>
I created a map file (secondo.map), an initialization file (secondo_i.html) and a template file (secondo.html).<u></u><u></u></p>
</div>
<p style="margin-bottom:12pt" class="MsoNormal"><br>
When I lunch the command <br>
<br>
<a href="http://localhost/secondo_i.html" target="_blank">http://localhost/secondo_i.html</a>
<u></u><u></u></p>
</div>
<p style="margin-bottom:12pt" class="MsoNormal">the browser shows this error message:<br>
<br>
msCGILoadMap(): Web application error. CGI variable "map" is not set. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p style="margin-bottom:12pt" class="MsoNormal">Text contained in initialization file:<br>
<br>
<html><br>
    <head><title>MapServer Seconda mappa</title></head><br>
    <body><br>
        <form method=POST action="/cgi-bin/mapserv"><br>
            <input type="submit" value="Clicca qui"><br>
            <input type="hidden" name="program" value="/cgi-bin/mapserv"<br>
            <input type="hidden" name= "map" value = "/home/enrico/mapserverdata/secondo.map"><br>
            <input type="hidden" name="zoomsize" size=2 value=2><br>
            <input type="hidden" name="layers" value="Regioni Fiumi Province"><br>
        </form><br>
    </body><br>
</html>    <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>

<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>
</blockquote></div><br></div>