For example:
OpenLayers.Request.POST({
url: './yourscript.php',
data: OpenLayers.Util.getParameterString({key1: value1, key2: value2}),
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
});
-----
Denis Rykov
NextGIS
http://www.nextgis.org/
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/help-with-passing-a-var-from-OL-to-PHP-tp6972263p6973276.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users