<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mapserver 6.0.1<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Lime, Steve D (DNR) <a href="mailto:[mailto:Steve.Lime@state.mn.us]">[mailto:Steve.Lime@state.mn.us]</a> <br><b>Sent:</b> Tuesday, March 20, 2012 6:31 PM<br><b>To:</b> Paul Maddock; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> RE: Run-time Substitution<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Which version?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> <a href="mailto:[mailto:mapserver-users-bounces@lists.osgeo.org]">[mailto:mapserver-users-bounces@lists.osgeo.org]</a> <b>On Behalf Of </b>Paul Maddock<br><b>Sent:</b> Tuesday, March 20, 2012 5:03 PM<br><b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> [mapserver-users] Run-time Substitution<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Dear anyone willing to help,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m having a hard time interpreting how to properly execute runtime cgi variable substitution using an <input> of type=text. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I replace ‘%county%’ with a sample county attribute value in single quotes the EXPRESSION works and is displayed on the returned html template.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Currently my html input variable in the template looks like this :<o:p></o:p></p><p class=MsoNormal><input type="text" id="county" name="county" /><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>…and my mapfile variable to be substituted for looks like this:<o:p></o:p></p><p class=MsoNormal> LAYER<o:p></o:p></p><p class=MsoNormal> NAME blah_ohio<o:p></o:p></p><p class=MsoNormal> STATUS OFF<o:p></o:p></p><p class=MsoNormal> TYPE POINT<o:p></o:p></p><p class=MsoNormal> DATA BLAH/BLAH_Ohio<o:p></o:p></p><p class=MsoNormal> PROJECTION<o:p></o:p></p><p class=MsoNormal> "init=epsg:3754"<o:p></o:p></p><p class=MsoNormal> END<o:p></o:p></p><p class=MsoNormal> CLASS<o:p></o:p></p><p class=MsoNormal> NAME 'Class1'<o:p></o:p></p><p class=MsoNormal> EXPRESSION ('[County]' eq '%county%')<o:p></o:p></p><p class=MsoNormal> STYLE<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> SYMBOL "circle" <o:p></o:p></p><p class=MsoNormal> COLOR 250 50 50<o:p></o:p></p><p class=MsoNormal> OUTLINECOLOR 0 0 0<o:p></o:p></p><p class=MsoNormal> SIZE 2<o:p></o:p></p><p class=MsoNormal> END<o:p></o:p></p><p class=MsoNormal> END<o:p></o:p></p><p class=MsoNormal> METADATA<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> "wms_title" "blah_ohio"<o:p></o:p></p><p class=MsoNormal> "wms_srs" "epsg:4326"<o:p></o:p></p><p class=MsoNormal> END<o:p></o:p></p><p class=MsoNormal> END<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance,<o:p></o:p></p><p class=MsoNormal>Paul<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>