Enrico Fiore
2014-05-14 12:58:24 UTC
Hi,
I tried to create a simple map application whit zoom and pan capabilities,
following the instructions contained in the book "Beginning MapServer".
I created a map file (secondo.map), an initialization file (secondo_i.html)
and a template file (secondo.html).
When I lunch the command
http://localhost/secondo_i.html
the browser shows this error message:
msCGILoadMap(): Web application error. CGI variable "map" is not set.
I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04
Text contained in initialization file:
<html>
<head><title>MapServer Seconda mappa</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv">
<input type="submit" value="Clicca qui">
<input type="hidden" name="program" value="/cgi-bin/mapserv"
<input type="hidden" name= "map" value =
"/home/enrico/mapserverdata/secondo.map">
<input type="hidden" name="zoomsize" size=2 value=2>
<input type="hidden" name="layers" value="Regioni Fiumi
Province">
</form>
</body>
</html>
I tried to create a simple map application whit zoom and pan capabilities,
following the instructions contained in the book "Beginning MapServer".
I created a map file (secondo.map), an initialization file (secondo_i.html)
and a template file (secondo.html).
When I lunch the command
http://localhost/secondo_i.html
the browser shows this error message:
msCGILoadMap(): Web application error. CGI variable "map" is not set.
I work with Mapserver 6.4.1-2 and OS: Ubuntu 14.04
Text contained in initialization file:
<html>
<head><title>MapServer Seconda mappa</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv">
<input type="submit" value="Clicca qui">
<input type="hidden" name="program" value="/cgi-bin/mapserv"
<input type="hidden" name= "map" value =
"/home/enrico/mapserverdata/secondo.map">
<input type="hidden" name="zoomsize" size=2 value=2>
<input type="hidden" name="layers" value="Regioni Fiumi
Province">
</form>
</body>
</html>