Hello fellows!!  

I'm quite new to mapserver and I'm still trying simple examples.  I'm having a 
.html template and a .map file.  My template is located in  
/usr/local/apache2/htdocs  folder and my .map file is located in /home/mapdata  
folder.

The template is:

<!-- MapServer Template -->
<html>
<head><title>MapServer attempt</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv"> 
<input type="submit" value="Click here">
<input type="hidden" name="map" value="/home/mapdata/hello.map">
<input type="hidden" name="map_web" value="/usr/local/apache2/htdocs/tmp">
</form>
<IMG SRC="[img]" width=400 height=300 border=0> 
</body>
</html>


and the .map file is as follows: 
MAP
Name "Attempt"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00  1.00 1.00
WEB 
    TEMPLATE "/usr/local/apache2/htdocs/hello.html"
    IMAGEPATH "/usr/local/apache2/htdocs/tmp"
    IMAGEURL "/tmp/"
END
LAYER
   STATUS default
   TYPE point
   FEATURE
       POINTS 0.0 0.0 END
       TEXT "Hello World"
   END 
   CLASS
         STYLE
            COLOR 255 0 0 
         END
         LABEL
            TYPE bitmap
         END
   END
END
END



When I load my template on the browser and I click on the button I get an error 
that says : loadWeb(): Unknown identifier. Parsing error near 
(/usr/local/apache2/htdocs/tmp):(line 1)

The mapfile seems OK simply because if I load it by itself (meaning: 
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/hello.map&mode=map)  it 
displays what it's supposed to. 

So the problem seems to be in the cgi about not passing the parameters to 
mapserver.  I googled a lot but haven't found any answer yet applicable yet. 

Any suggestion ?

Thanks in advance!!! 
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to