<div dir="ltr"><div><div><div>Sorry I have sent the first message for error, I conclude it in this post<br><br></div><div>the template file text is:<br><br><!-- MapServer Template --><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><br><br></div><div><br></div>My question is what I miss in my exercise.<br><br></div>Can anyone help me?<br>
<br>And sorry for to have split the message in two post.<br><br>With thanks,<br><br></div>Enrico<br><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-14 14:58 GMT+02:00 Enrico Fiore <span dir="ltr"><<a href="mailto:enricofiore80@gmail.com" target="_blank">enricofiore80@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"><div><div><div><div><div>Hi,<br></div>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).<br>
</div><br>When I lunch the command <br><br><a href="http://localhost/secondo_i.html" target="_blank">http://localhost/secondo_i.html</a> <br><br></div>the browser shows this error message:<br><br>msCGILoadMap(): Web application error. CGI variable "map" is not set.
<br><br></div><div>I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04<br></div><div><br></div><br></div>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>    <br><br><div><div><br></div></div></div>

</blockquote></div><br></div>