<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div>Hello fellows!! </div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">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.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">The template is:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><!-- MapServer Template --></div><div style="background-color: transparent;"><html></div><div style="background-color: transparent;"><head><title>MapServer attempt</title></head></div><div style="background-color: transparent;"><body></div><div style="background-color: transparent;"><form method=POST action="/cgi-bin/mapserv"> </div><div style="background-color: transparent;"><input type="submit" value="Click here"></div><div style="background-color: transparent;"><input type="hidden" name="map"
value="/home/mapdata/hello.map"></div><div style="background-color: transparent;"><input type="hidden" name="map_web" value="/usr/local/apache2/htdocs/tmp"></div><div style="background-color: transparent;"></form></div><div style="background-color: transparent;"><IMG SRC="[img]" width=400 height=300 border=0> </div><div style="background-color: transparent;"></body></div><div style="background-color: transparent;"></html></div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">and the .map file is as
follows: </div><div style="background-color: transparent;">MAP</div><div style="background-color: transparent;">Name "Attempt"</div><div style="background-color: transparent;">SIZE 400 300</div><div style="background-color: transparent;">IMAGECOLOR 249 245 186</div><div style="background-color: transparent;">IMAGETYPE png</div><div style="background-color: transparent;">EXTENT -1.00 -1.00 1.00 1.00</div><div style="background-color: transparent;">WEB </div><div style="background-color: transparent;"> TEMPLATE "/usr/local/apache2/htdocs/hello.html"</div><div style="background-color: transparent;"> IMAGEPATH "/usr/local/apache2/htdocs/tmp"</div><div style="background-color: transparent;"> IMAGEURL "/tmp/"</div><div style="background-color: transparent;">END</div><div style="background-color: transparent;">LAYER</div><div style="background-color: transparent;"> STATUS default</div><div
style="background-color: transparent;"> TYPE point</div><div style="background-color: transparent;"> FEATURE</div><div style="background-color: transparent;"> POINTS 0.0 0.0 END</div><div style="background-color: transparent;"> TEXT "Hello World"</div><div style="background-color: transparent;"> END </div><div style="background-color: transparent;"> CLASS</div><div style="background-color: transparent;"> STYLE</div><div style="background-color: transparent;"> COLOR 255 0 0 </div><div style="background-color: transparent;"> END</div><div style="background-color: transparent;"> LABEL</div><div style="background-color: transparent;"> TYPE bitmap</div><div
style="background-color: transparent;"> END</div><div style="background-color: transparent;"> END</div><div style="background-color: transparent;">END</div><div style="background-color: transparent;">END</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">When I load my template on the browser and I click on
the button I get an error that says : <span style="font-family: 'Times New Roman'; font-size: 16px;">loadWeb(): Unknown identifier. Parsing error near (/usr/local/apache2/htdocs/tmp):(line 1)</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;"><span style="font-family: 'Times New Roman'; font-size: 16px;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;"><span style="font-family: 'Times New Roman'; font-size: 16px;">The mapfile seems OK simply because if I load it by itself (meaning: </span><a href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/hello.map&mode=map" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size:
12pt;">http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/hello.map&mode=map</a><span style="background-color: transparent;">) it displays what it's supposed to. </span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;"><span style="background-color: transparent;">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. </span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="background-color:
transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;"><span style="background-color: transparent;">Any suggestion ?</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'Times New Roman'; font-style: normal;">Thanks in advance!!! </div><div><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div></div></body></html>