title: Form $_POST is empty (sometimes) but raw post data is fine
body: <p>Heres my form:</p>
  
  <pre><code>&lt;form method="POST" enctype="multipart/form-data"  action="/my-account/update"&gt;
      &lt;select name="userType"  class="form-control" &gt;
          &lt;option value="0"&gt;0&lt;/option&gt;
          &lt;option value="1"&gt;1&lt;/option&gt;
          &lt;option value="2" selected="selected"&gt;2&lt;/option&gt;
      &lt;/select&gt;
      &lt;select name="userIsInSearch"  class="form-control" &gt;
          &lt;option value="1" selected="selected"&gt;1&lt;/option&gt;
          &lt;option value="0"&gt;0&lt;/option&gt;
      &lt;/select&gt;
      &lt;input type="text" class="form-control" id="fwn" name="signupfname"&gt;
      &lt;input type="text" class="form-control" id="sn" name="signupsname"&gt;
      &lt;input type="text" class="form-control" id="usrf" name="signupemail"&gt;
      &lt;input type="password" class="form-control" id="pwdf" name="signuppass"&gt;
      &lt;input type="password" class="form-control" id="pwdfc" name="signuppassconf"&gt;
      &lt;input type="submit" value="Update!" class="btn btn-green" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I've noticed that 9/10 the form POSTs completely fine but sometimes it has a problem, I've noticed this on another form on the website too and I cant figure out what is causing it.</p>
  
  <p>I have found a way to make the problem happen everytime, by simply typing "alert(" (without quotations) into any of the input fields causes the entire POST to be empty but <code>php://input</code> is fine.</p>
  
  <p>The system is in codeigniter and I have tried dumping <code>$_POST</code> and <code>php://input</code> at the top of the index.php file and have the same results so I dont think it is codeigniter causing it.</p>
  
  <p>Any help or ideas greatly appreciated!</p>