<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&#39;t. My PHP script is run, Firebug says
&#39;width=500&amp;height=500&#39; is posted, but $_REQUEST,
$_POST, and $_GET are all empty.<br>
<br>
I tested the $_POST array outside of OL with:<br>
<br>
&lt;?php<br>
&nbsp; if( $_POST[&quot;name&quot;] || $_POST[&quot;age&quot;] )<br>
&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Welcome &quot;. $_POST[&#39;name&#39;]. &quot;&lt;br /&gt;&quot;;<br>
&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;You are &quot;. $_POST[&#39;age&#39;]. &quot; years old.&quot;;<br>
&nbsp;&nbsp;&nbsp;&nbsp; exit();<br>
&nbsp; }<br>
?&gt;<br>
&lt;html&gt;<br>
&lt;body&gt;<br>
&nbsp; &lt;form action=&quot;&lt;?php $_PHP_SELF ?&gt;&quot; method=&quot;POST&quot;&gt;<br>
<br>
&nbsp; Name: &lt;input type=&quot;text&quot; name=&quot;name&quot; /&gt;<br>
&nbsp; Age: &lt;input type=&quot;text&quot; name=&quot;age&quot; /&gt;<br>
<br>
&nbsp; &lt;input type=&quot;submit&quot; /&gt;<br>
&nbsp; &lt;/form&gt;<br>
&lt;/body&gt;<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&#39;s $_REQUEST and $_POST arrays. <br>