What settings in php.ini should I adjust for php to accept data from javascript?
<p>I just installed LAMP.  Everything seems to be working fine except when I send data from js to php via ajax, php does not receive the data sent.  I suspect this has to do with a setting in php.ini but I don't know which to change.  My js ajax function looks like this: </p>

<p>function ajax (url, data_to_be_sent, callback_func) {   </p>

<pre><code>if (window.XMLHttpRequest)

{// code for IE7+, Firefox, Chrome, Opera, Safari

    xmlhttp=new XMLHttpRequest();

}

else

{// code for IE6, IE5

    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

}

xmlhttp.onreadystatechange=callback_func;

xmlhttp.open("POST",url,true);

xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");

xmlhttp.send(data_to_be_sent);
</code></pre>

<p>}</p>
