Thank u matt
<br>
<br>It really helped me and it worked just as you said.
<br>
<br>I'm really thankful cause you replied very fast and I could solve my urgent problem. For all those who have the same problem just remember that:
<br>
<br>FILTER is an option that works as a WHERE sentence in SQL so don't forget to write the value of the variable in ' ' couse it was my mistake.
<br>
<br>As an example I had a PostGis table and had a column called type. I just wanted to retrieve all the data wich value were (street) so the correct statement was:
<br>
<br>
<br>FILTER " type='street' "
<br>
<br>and using the variable
<br>
<br>FILTER "type= '%myvar%'"
<br>
<br>
<br>and in the URL need to pass the variable as
<br>
<br>....mode=browse&myvar=street
<br>
<br>Thank u mat
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/Passing-a-variable-in-mapserver-t1012276.html#a2639206">Re: Passing a variable in mapserver</a><br>
Sent from the <a href="http://www.nabble.com/Mapserver---User-f1215.html">Mapserver - User</a> forum at Nabble.com.