Dear Friends,<br>I have my .Map file in C:\ms4w\apps\gmap\htdocs and it is called hello.map and my template file is saved in C:\ms4w\Apache\htdocs and is hello.html.<br>Hello.map looks like <br># This is our "Hello World" mapfile<br>
NAME "Hello_World"<br> SIZE 400 300<br> IMAGECOLOR 249 245 186<br> IMAGETYPE png<br> EXTENT -1.00 -1.00 1.00 1.00<br> WEB<br> TEMPLATE "/ms4w/Apache/htdocs/hello.html"<br> IMAGEPATH "/ms4w/apps/gmap/data"<br>
IMAGEURL "/ms4w/tmp"<br> END<br> LAYER<br> STATUS default<br> TYPE point<br> FEATURE<br> POINTS 0.0 0.0 END<br> TEXT "Hello World"<br> END # end feature<br> CLASS<br> STYLE<br> COLOR 255 0 0<br> END<br>
LABEL<br> TYPE bitmap<br> END<br> END<br> END<br> END<br> <br>And hello.html looks like <br><html><br> <head><title>MapServer Hello World</title></head><br> <body><br> <form method=POST action="../cgi-bin/mapserv.exe"><br>
<input type="submit" value="Click Me"><br> <input type="hidden" name="map" value="/ms4w/Apache/htdocs/hello.map"><br> <input type="hidden" name="map_web_imagepath"<br>
value="map=/ms4w/Apache/htdocs/hello.map&mode=map"><br> </form><br> <IMG SRC="tmp/abc.png" width=400 height=300 border=0><br> </body><br> </html><br> <br>Ther is some error in this script and I am not able to figure it out. Kindly help me out.