title: Error 500 internal server error when posting long forms content
body: <p>I created a long form with multiple fields that post the typed data to a Mariadb database.<br>
  The types are all set to TEXT as the field will contain long text.</p>
  
  <p>The max_allowed_packet = 1073741824 <br>
  The net_buffer_length = 1048576 <br>
  The PHP post_max_size = 500M<br>
  The memory_limit = 550M<br><br>
  All this seems suficiant for very long text posting to database. 
  But apparently not, as it gives me a 500 error when I exceed 99100 characters :/ and works fine when I keep the posted text under that amount of characters.
  What am I doing wrong ?<br>
  The error log shows : Code:500 <br>Message:Code:500 Message: POST /login/resident/updateresident/7 HTTP/1.1 <br>
  Thank you in advance!</p>