loadWeb(): Unknown identifier. Parsing error near (imagepath):(line 1)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

loadWeb(): Unknown identifier. Parsing error near (imagepath):(line 1)

ibrahim-alroz
HEllo
I am trying to apply the sample build your first map and here is the first.map file

MAP
NAME "First"

SIZE 400 300
IMAGECOLOR 255 255 255
IMAGETYPE JPEG
SHAPEPATH "C:\ms4w\apache\htdocs\data"
EXTENT -125.00 20.00 -65.00 50.00

WEB
TEMPLATE  "http://localhost/first.html"
IMAGEPATH "C:\ms4w\apache\htdocs\output"
IMAGEURL "/output/"
END
 LAYER
 NAME "US States"
 STATUS default
 TYPE line
 DATA "statesp020"
 LABELITEM "STATE"

CLASS
 STYLE
 COLOR 0 0 0
 END
 
 LABEL
 COLOR 0 0 0
 SIZE SMALL
 END
 END
 END
 END

and the first.html file is the following


<html>
 <head><title>MapServer First Map</title></head>
 <body>
 <form method=POST action="/cgi-bin/mapserv.exe">
 <input type="submit" value="Click Me">
 <input type="hidden" name="map" value="c:\ms4w\apache\htdocs\first.map">
<input type="hidden" name="map_web" value="imagepath+C:\ms4w\Apache\htdocs\tmp\+imageurl+/tmp/">
 </form>
 <IMG SRC="[img]" width=400 height=300 border=0>
 </body>
 </html>
but i have the following error :
loadWeb(): Unknown identifier. Parsing error near (imagepath):(line 1)

How ca you help me?