title: POST max length or JS object max length?
body: <p>I am stuck with an annoying problem. I have an application on Google App Engine which sends some data (formatted as JSON string) from JS through POST to a php page. But when I select more than a specific amount of data, simply nothing is returned. I already tried to increase post_max_size to 20M, but not better. So where could be a limitation here? Is there another possibility to get data from JS to PHP? I tried like this:</p>
  
  <pre><code>function openWindowWithPost(url, name, keys, values) {
  var newWindow = window.open(url, name);
  
  if (!newWindow)
      return false;
  
  var html = "";
  html += "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;form id='formid' method='post' action='"
          + url + "'&gt;";
  
  if (keys &amp;&amp; values &amp;&amp; (keys.length == values.length))
      for (var i = 0; i &lt; keys.length; i++)
          html += "&lt;input type='hidden' name='" + keys[i] + "' value='"
                  + values[i] + "'/&gt;";
  
  html += "&lt;/form&gt;&lt;script type='text/javascript'&gt;document.getElementById(\"formid\").submit()&lt;/sc"
          + "ript&gt;&lt;/body&gt;&lt;/html&gt;";
  
  newWindow.document.write(html);
  return newWindow;
  }
  </code></pre>