<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16681" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>I have an application in which I pass a variable %table% 
&nbsp;thru the url to the Mapserver mapfile and it works great.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>My example</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New"><FONT face=Arial size=2>LAYER</FONT></DIV>
<DIV><FONT face=Arial size=2>CONNECTION "&lt;OGRVRTDataSource&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;OGRVRTLayer name='data'&gt;</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&lt;SrcDataSource&gt;MYSQL:xxxx,user=xxxx,password=xxxxx,port=3306,tables=%table%&lt;/SrcDataSource&gt; 
</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;SrcSQL&gt;SELECT * FROM %table%&lt;/SrcSQL&gt; 
</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;LayerSRS&gt;WGS84&lt;/LayerSRS&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;GeometryField encoding='PointFromColumns' 
x='Long' y='Lat'/&gt; </FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;/OGRVRTLayer&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;/OGRVRTDataSource&gt;"</FONT></DIV>
<DIV><FONT face=Arial size=2>CONNECTIONTYPE OGR </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>But now I am trying to use mapscript to print the map and 
when I call</FONT></DIV>
<DIV><FONT face="Courier New" color=#800080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#800080 size=2>$image</FONT><FONT 
face="Courier New" size=2> = </FONT><FONT face="Courier New" color=#800080 
size=2>$mapfile</FONT><FONT face="Courier New" size=2>-&gt;draw()</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><FONT face=Arial size=3>I get errors 
wanting to know the value of %table%</FONT></DIV></FONT></FONT>
<DIV><FONT face=Arial><EM></EM></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>How do I implement this function when 
using&nbsp;PHP/Mapscript. &nbsp;When creating a new MapObj and drawing the 
map,<BR>url-parameters or cookies appear not to be passed to the mapserver. 
</DIV></FONT></BODY></HTML>