I am creating a website of readings but it happens that when sending by the URL the content of a TextArea is very long and it returns an error 414 the browser, I am using PHP with AJAX
This is the TextArea field:
<textarea id="I_Contenido" class="materialize-textarea"></textarea>
In the Javascript I recover it:
var Contenido =document.getElementById("I_Contenido").value;
Send it to the php in this way:
xmlhttp.open("POST","../Entities/addLectura.php?Titulo="+Titulo+"&Descripcion="+Descripcion+"&Autor="+Autor+"&Imagen="+Imagen+"&Fecha="+Fecha+"&Contenido="+Contenido,true);
And in PHP I recover it like this:
$Contenido = ($_GET['Contenido']);
Any idea how I could compress the text or have it allow me to send it?