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

Guillaume MOCCAND moccand at ensg.ign.fr
Thu Oct 16 14:16:18 PDT 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>  <!-- 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></pre>












More information about the MapServer-users mailing list