[OpenLayers-Users] OpenLayers.Request problem; where is the data?

Lehtonen, Mika mika at digikartta.net
Mon Nov 3 04:01:22 EST 2008


Hi,
I am trying to send a POST request from OL with the following snippet:

new OpenLayers.Request.issue({method: 'POST', url:'sld.php', 
params:{abc:'def', cba:'fed'}, data:{ghi: 'jkl', ihg: 'lkj'},
success: function(){alert('Succeeded!');}, failure: 
function(){alert('Did not succeed.');}, callback: 
function(){alert('Calling back');}});

$_POST array in sld.php stays empty. In $_GET array I can find the 
params: def and fed. How can I get touch with the data? Am I doing 
something wrong here?

- mika -




More information about the Users mailing list