G'day all,

I am slightly confused about how CGI parameters work. My understanding was you could pass a parameter in the url :

&vesselid=2&endyear=2006

and then pick it up in the map file using:

[vesselid]

Which seems to work OK (I'm including it into a PostGIS query).

I also thought you could then put:

<select name="vesselid">
                  <option value="1" [vesselid_1_select]>Foam Bay</option>
                  <option value="2" [vesselid_2_select]>Mary Ann</option>
etc

or

<select name="endyear">
                  <option value="2006" [endyear_2006_select]>2006 </option>
                  <option value="2007" [endyear_2007_select]>2007</option>
</select>


into your html template, and expect it to print selected into the appropriate box, but I get the following source returned.

<select name="vesselid">
                  <option value="1" [vesselid_1_select]>Foam Bay</option>
                  <option value="2" [vesselid_2_select]>Mary Ann</option>
</select>
<select name="endyear">
                  <option value="2006" [endyear_2006_select]>2006 </option>
                  <option value="2007" [endyear_2007_select]>2007</option>
</select>

This seems to be working with radio buttons and checkboxes and text fields and text areas :

<td valign='top'>
<input type="radio" name="zoomdir" value="1" [zoomdir_1_check]>Zoom In
</td><td valign='top'>
<input type="radio" name="zoomdir" value="0" [zoomdir_0_check]>Pan
</td><td valign='top'>
<input type="radio" name="zoomdir" value="-1" [zoomdir_-1_check]>Zoom Out
</td><td valign='top'>
<input type='text' name='zoomsize' value='[zoomsize]' size='3'>

all work fine. I note that Pericles online tutorial uses select boxes, and they also work fine.

Is there a limit on how many form items may be used?

or what they may be called?

or how they are injected back into the template?

or have I completely gotten the wrong end of the stick on this one?

cheers

Ben




--

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

[EMAIL PROTECTED]



                                                        Out here, it pays to 
know...


Reply via email to