Hi Salvatore,
This is not exactly the same case but it might help.... My "MAPFILE" has a raster layer named 'landuse': LAYER NAME landuse TYPE RASTER DATA "file01.tif" END and I was interested in giving the user the capability to change the data source (i.e. switch from "file01.tif" to "file02.tif", by clicking on a button). To do that, I passed the filename as a variable (wdata) in the URL and used the mapscript function "set" to update the layer in the map object: #### globals.php ############################### $wdata=$_REQUEST['wdata']; if ($wdata != '') { $mylayer=$map->getLayerByName('landuse'); $mylayer->set("data",$wdata); } ############################################# Maybe is not that clean but it works nicely. Regards ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users