title: Increasing the maximum Ajax POST size
body: <p>just want to know if it is possible to increase the size limit of a POST variable used with AJAX? <br />In fact, I tried to insert in Database a long html code string, but it always cropped? <br />A found several solutions, but nothing seem to work ...</p>
  <h2>Here is my Javascript code:</h2>
  <pre><code>$(document).ready(function() {
          $('#send_ajax').click(function() {
              var html = escape($('#html_code').val());
                  
              $.ajax({
                   type: &quot;POST&quot;,
                   url: &quot;test.php&quot;,
                   data: { html_code: html },
                   success: success
              });
          
          });
  });
  </code></pre>
  <p>It working, but when I put a large string (HTML code) inside my textarea (#html_code), the string is automatically cut inside the Database. So, I just have the half of the string.</p>
  <h2>Here is what I tried :</h2>
  <p><strong>.htaccess file:</strong><br />
  php_value post_max_size 20M<br />
  php_value upload_max_filesize 20M<br />
  LimitRequestBody 0<br />
  LimitXMLRequestBody 0</p>
  <p><strong>Apache httpd.conf file:</strong><br />
  LimitRequestBody 0</p>
  <p>Can you help me ?</p>
  <p>Thank you :)</p>