[Mapserver-users] "MAPSERVER FORM " and Windows ... HELP ME !

Guillaume MOCCAND moccand at ensg.ign.fr
Thu Oct 16 17:16:18 EDT 2003


hi,

i have some problem with the use of Mapserver 4.0 on Win2000 and IIS (also with 
Apache). i try to run the tutorial found at the following URL :
http://terrasip.gis.umn.edu/projects/tutorial/

in the HTML pages i found the code :

<img border="1" src="/cgi-bin/mapserv40?map=/data/projects/tutorial/example1-
9.map&mode=map" />

in order to get a static map, i needed to change it to :

<img border="1" src="http://localhost/scripts/mapserv.exe?
map=c:\tutorial\example1-9.map&mode=map" />

it works fine but i'm not really glad to write the complete path of the map 
file. 
But my deepest problem is that i don't know how to get a dynamic map with the 
HTML FORM !!


here is the code of the FORM :

<!-- START OF MAPSERVER FORM -->
<form name="mapserv" method="GET" action="/cgi-bin/mapserv40">
<!-- HIDDEN MAPSERVER CGI VARIABLES -->
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="imgxy" value="199.5 149.5">
<input type="hidden" name="zoom" value="1">
<input type="hidden" name="mode" value="browse">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0">
<tr><td>
<!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP -->
<input type="image" name="img" src="[img]" width="400" height="300">
</td></tr>
</table>
</div>
</form>

(a html text version of the form is paste at the end of this mail)

my first change into this FORM was to replace action="/cgi-bin/mapserv40" by 
action="http://localhost/scripts/mapserv.exe"

but nothing seems to work ...

does anyone could help me ?
does anyone can explain me the complete way to make dynamique maps with 
mapserver on Windows.

thanks very much

best regards

Guillaume MOCCAND
moccand at ensg.ign.fr



      <pre>  &lt;!-- START OF MAPSERVER FORM --&gt;
  &lt;form name=&quot;mapserv&quot; method=&quot;GET&quot; action=&quot;/cgi-
bin/mapserv40&quot;&gt;
     &lt;!-- HIDDEN MAPSERVER CGI VARIABLES --&gt;
     &lt;input type=&quot;hidden&quot; name=&quot;map&quot; 
value=&quot;&#091;map&#093;&quot;&gt;
     &lt;input type=&quot;hidden&quot; name=&quot;imgext&quot; 
value=&quot;&#091;mapext&#093;&quot;&gt;
     &lt;input type=&quot;hidden&quot; name=&quot;imgxy&quot; value=&quot;199.5 
149.5&quot;&gt;
     &lt;input type=&quot;hidden&quot; name=&quot;zoom&quot; 
value=&quot;1&quot;&gt;
     &lt;input type=&quot;hidden&quot; name=&quot;mode&quot; 
value=&quot;browse&quot;&gt;

     &lt;div align=&quot;center&quot;&gt;
	  &lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; 
cellspacing=&quot;0&quot;&gt;
	     &lt;tr&gt;&lt;td&gt;
           &lt;!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP --
           &lt;input type=&quot;image&quot; name=&quot;img&quot; 
src=&quot;&#091; img &#093;&quot; width=&quot;400&quot; 
height=&quot;300&quot;&gt;
        &lt;/td&gt;&lt;/tr&gt;
     &lt;/table&gt;
     &lt;/div&gt;
  &lt;/form&gt;</pre>












More information about the mapserver-users mailing list