There is the my map file<br>#This is our first mapfile<br>NAME "First"<br>SIZE 400 300<br>IMAGETYPE 255 255 255<br>IMAGETYPE JPEG<br>SHAPEPATH "/home/mapdata/"<br>EXTENT -125.00 20.00 -65.00 50.00<br>WEB<br> TEMPLATE '/var/www/htdocs/first.html'<br> IMAGEPATH '/var/www/htdocs/tmp'<br> IMAGEURL '/tmp/'<br>END<br>LAYER<br> NAME "US States"<br> STATUS default<br> TYPE line<br> DATA "statesp020"<br> LABELITEM "STATE"<br> CLASS<br> STYLE<br> COLOR 0 0 0<br> END<br> COLOR 0 0 0 <br> SIZE SMALL<br>
END<br> END<br>END<br>END<br><br>and there is my html<br><br><html><br><head><title>MapServer First Map</title></head><br><body><br> <form method=POST action="/cgi-bin/mapserv"><br> <input type="submit" value="Click Me"<br> <input type="hidden" name="map"<br> value="/home/mapdata/first.map"><br> <input type="hidden" name="map_web_imagepath"<br> value="/var/www/htdocs/tmp/"><br><br> </form><br> <IMG SRC="[img]" width=400 height=300 border=0><br></body><br></html><br><br>Thanks,<br>Albert<br><br><br><br><br><b><i>"Fawcett, David" <David.Fawcett@STATE.MN.US></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255);
margin-left: 5px; padding-left: 5px;"><title>Message</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta content="MSHTML 6.00.2900.2912" name="GENERATOR"> <div><span class="089313914-29062006"><font color="#0000ff" face="Arial" size="2">Albert, </font></span></div> <div><span class="089313914-29062006"><font color="#0000ff" face="Arial" size="2"></font></span> </div> <div><span class="089313914-29062006"><font color="#0000ff" face="Arial" size="2">Please CC' the entire list on your responses. </font></span></div> <div><span class="089313914-29062006"><font color="#0000ff" face="Arial" size="2"></font></span> </div> <div><span class="089313914-29062006"><font color="#0000ff" face="Arial" size="2">From your description, you have an error in your mapfile. I would suggest including the text of your mapfile in your response to the list. </font></span></div> <div><span class="089313914-29062006"><font
color="#0000ff" face="Arial" size="2"></font></span> </div> <div><span class="089313914-29062006"><font color="#0000ff" face="Arial" size="2">David.</font></span></div> <div><span class="089313914-29062006"></span> </div> <div></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> Albert Anderson [mailto:bart_doggers@yahoo.com] <br><b>Sent:</b> Thursday, June 29, 2006 9:13 AM<br><b>To:</b> Fawcett, David<br><b>Subject:</b> RE: [UMN_MAPSERVER-USERS] msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) <br><br></font></div>Hi,<br><br> I did a wapperscript and put name="map" in the html where the input is. Now I am getting this error msLoadMap(): Unknown identifier. Parsing error near (255):(line 4) . Could you please help me.<br><br>Thanks,<br>Albert<br><br><b><i>"Fawcett, David" <David.Fawcett@state.mn.us></i></b> wrote:
<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"> <meta content="MSHTML 6.00.2900.2912" name="GENERATOR"> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2">Albert, </font></span></div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2"></font></span> </div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2">You are calling the MapServer cgi program, but you are not telling it which map file to use for configuration. If you are calling the program with a get request (in a URL), it should look something like:</font></span></div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2"></font></span> </div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2"><a
href="http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map">http://my.site/cgi-bin/mapserv?map=/home/mydirectory/mymapfile.map</a></font></span></div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2"></font></span> </div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2">You will likely set other variables in the URL also, like mode, layers, etc. </font></span></div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2"></font></span> </div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2">If you are calling the MapServer cgi from a html form, you are missing a hidden html variable named map that, like the url variable above, would contain the path to your map file. </font></span></div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial"
size="2"></font></span> </div> <div><span class="583392113-29062006"><font color="#0000ff" face="Arial" size="2">David.</font></span></div> <blockquote style="margin-right: 0px;"> <div></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <b>On Behalf Of </b>Albert Anderson<br><b>Sent:</b> Thursday, June 29, 2006 8:18 AM<br><b>To:</b> MAPSERVER-USERS@LISTS.UMN.EDU<br><b>Subject:</b> [UMN_MAPSERVER-USERS] load Map error<br><br></font></div>Hi,<br><br> I am getting this error loadMap(): Web application error. CGI variable "map" is not set. That is when I am clicking the submit button and it doesnt load up the map. Can anyone help me?<br><br><br><br>Thanks,<br>Albert<br> <div></div> <hr size="1"> Talk is cheap. Use Yahoo! Messenger to make
PC-to-Phone calls. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com">Great rates starting at 1�/min.</a></blockquote></blockquote><br> <div> </div><hr size="1"> Yahoo! Music Unlimited - Access over 1 million songs. <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/%20">Try it free.</a> </blockquote><br><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com