<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;">$_REQUEST will contain form-encoded parameters (sent as data in a POST).<br>
<div><div></div><div class="Wj3C7c"><br></div></div></blockquote></div><br>Right, so using your getParameterString example:<br><br>
OpenLayers.Request.POST({url: printURL, data:
OpenLayers.Util.getParameterString({width:size.w, height:size.h}),
callback: function(request)
{alert(request.status);alert(request.responseText);}});<br>
<br>
should form encode width and height and it should be in the $_POST
array correct? But it isn't. My PHP script is run, Firebug says
'width=500&height=500' is posted, but $_REQUEST,
$_POST, and $_GET are all empty.<br>
<br>
I tested the $_POST array outside of OL with:<br>
<br>
<?php<br>
if( $_POST["name"] || $_POST["age"] )<br>
{<br>
echo "Welcome ". $_POST['name']. "<br />";<br>
echo "You are ". $_POST['age']. " years old.";<br>
exit();<br>
}<br>
?><br>
<html><br>
<body><br>
<form action="<?php $_PHP_SELF ?>" method="POST"><br>
<br>
Name: <input type="text" name="name" /><br>
Age: <input type="text" name="age" /><br>
<br>
<input type="submit" /><br>
</form><br>
</body><br><br>and this worked correctly so my PHP installation is fine. I also tried using text/plain headers to no avail. OpenLayers.Request.POST data still is not showing up in PHP's $_REQUEST and $_POST arrays. <br>