My guess is the validation is correct but the syntax of the URL parameter is is wrong in that the value passed for DATA is not quoted. If you unquote the default value in your mapfile does that result in a error? That would be an easy way to test the need for quotes.<br>
<br>One last idea, while map_layer... should work, try map.layer... instead as you variable name.<br><br>If you&#39;re really are just replacing the date part you could do that by doing a runtime sub...<br><br>  DATA &quot;OMI-Aura_L3-OMCLDRRclpWMSNRT_%date%.png&quot;<br>
  VALIDATION<br>      date &#39;regex&#39;<br>  END<br><br>And then you pass date as a CGI variable.<br><br>Steve<br><br>On Thursday, September 22, 2011, Asad Ullah &lt;<a href="mailto:Asad.Ullah@sigmaspace.com">Asad.Ullah@sigmaspace.com</a>&gt; wrote:<br>
&gt; List,<br>&gt; I am trying to substitute DATA parameter in my mapfile with a call from Openlayers as follow:<br>&gt;<br>&gt; map_layer[OMI_CP]=DATA+OMI-Aura_L3-OMCLDRRclpWMSNRT_&quot;+ amsreDate + &quot;.png&quot;<br>
&gt;<br>&gt; The mapfile is:<br>&gt;<br>&gt; LAYER                       <br>&gt;  NAME &quot;OMI_CP&quot;<br>&gt;     TYPE RASTER<br>&gt;     STATUS DEFAULT<br>&gt;     OFFSITE 0 0 0<br>&gt;  PROJECTION<br>&gt;     &quot;init=epsg:4326&quot;  <br>
&gt;   END<br>&gt;     DATA &quot;OMI-Aura_L3-OMCLDRRclpWMSNRT_20110922.png&quot;<br>&gt; VALIDATION<br>&gt;   &#39;DATA&#39; &#39;^OMI_.*\.png$&#39;<br>&gt; END<br>&gt;<br>&gt; The call should change the date part (20110922) of the png filename but it is not doing it. Can anyone point to what I am doing wrong here?<br>
&gt;<br>&gt; Thanks,<br>&gt;<br>&gt; Asad<br>&gt;