[mapserver-users] Σχετ: Parsing error on click.

Stefanos Anastasiou emperor_stef at yahoo.gr
Wed Oct 23 17:12:19 PDT 2013


Hi Jeff!!

Thanks a lot!  Last example of the link you sent me seems to work!!   :-) 

I just seem to lose the submit button when the map appears?

Shouldn't it still be there?

Thanks

Stefanos



Στις 3:52 π.μ. Τετάρτη, 23 Οκτωβρίου 2013, ο/η Stefanos Anastasiou <emperor_stef at yahoo.gr> έγραψε:
 
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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131024/3b913d3b/attachment.html>


More information about the mapserver-users mailing list