<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div dir="ltr" align="left"><span>have you
tried:</span></div>
<div dir="ltr" align="left"><span>new
OpenLayers.Request.issue({</span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"> method: 'POST',</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"> <a><font color="#000000">url:<font face="Times New Roman" size="3">'</font></font></a><a href="http://www.host.com/lib/printMap.php" target="_blank"><font color="#000000" face="Times New Roman" size="3">http://www.host.com/lib/printMap.php</font></a><font face="Times New Roman" size="3"><font color="#000000">'</font></font><font face="Arial" size="2">,</font></font></span></div>
<div dir="ltr" align="left"><span> <font face="Arial" size="2">params: {</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">
getStringItem1:'cheesburger',</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">
item2:'wambat'</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"> },</font></span></div>
<div dir="ltr" align="left"><span> <font face="Arial" size="2">data:{</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"> postedUsername:
'myUsername',</font></span></div>
<div dir="ltr" align="left"><span> <font face="Arial" size="2">postedPassword: 'myPassword'</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"> },</font></span></div>
<div dir="ltr" align="left"><span> <font face="Arial" size="2">success: function(request){</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">
alert(request.responseText);</font></span></div>
<div dir="ltr" align="left"><span></span><span><font face="Arial" size="2">
},</font></span></div>
<div dir="ltr" align="left"><span> <font face="Arial" size="2">failure:function(request){
<div dir="ltr" align="left"><span><font face="Arial" size="2">
alert('BOOOOOO!');</font></span></div>
<div dir="ltr" align="left"><span></span><span><font face="Arial" size="2">
}</font></span></div></font></span></div>
<div dir="ltr" align="left"><span>});</span></div>
<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">and have you checked the $_GET and $_POST arrays in PHP? the request
array is usually frowned upon.</font></span></div>
</div></blockquote></div><br><br>Thank you for the reply Chris. I tried your example and I get the javascript error "complete is not a function" at line 332:<br><br><pre id="line1">request.onreadystatechange=function(){if(request.readyState==OpenLayers.Request.XMLHttpRequest.DONE){complete(request);if(success&&(!request.status||(request.status>=200&&request.status<300))){success(request);}</pre>
<br>The parameters "getStringItem1" and "item2" are posted according to Firebug. The $_POST array is empty, likely due to the error.<br></div>