<!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%
thru the url to the Mapserver mapfile and it works great.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>My example</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face="Courier New"><FONT face=Arial size=2>LAYER</FONT></DIV>
<DIV><FONT face=Arial size=2>CONNECTION "<OGRVRTDataSource></FONT></DIV>
<DIV><FONT face=Arial size=2><OGRVRTLayer name='data'></FONT></DIV>
<DIV><FONT face=Arial
size=2><SrcDataSource>MYSQL:xxxx,user=xxxx,password=xxxxx,port=3306,tables=%table%</SrcDataSource>
</FONT></DIV>
<DIV><FONT face=Arial size=2><SrcSQL>SELECT * FROM %table%</SrcSQL>
</FONT></DIV>
<DIV><FONT face=Arial
size=2><GeometryType>wkbPoint</GeometryType></FONT></DIV>
<DIV><FONT face=Arial size=2><LayerSRS>WGS84</LayerSRS></FONT></DIV>
<DIV><FONT face=Arial size=2><GeometryField encoding='PointFromColumns'
x='Long' y='Lat'/> </FONT></DIV>
<DIV><FONT face=Arial size=2></OGRVRTLayer></FONT></DIV>
<DIV><FONT face=Arial size=2></OGRVRTDataSource>"</FONT></DIV>
<DIV><FONT face=Arial size=2>CONNECTIONTYPE OGR </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </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>->draw()</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </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> </DIV>
<DIV><FONT face=Arial>How do I implement this function when
using PHP/Mapscript. 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>