I have a textarea that inserts into a database when submitted. It works when the text is typed, but sometimes does not work when the text was pasted into the textarea. Instead, it posts successfully, no errors,
Text copied from some webpages/websites work, for example text copied from blindtextgenerator.com, but not text copied from thebestpageintheuniverse.net (just for example.)
I'm not sure what the circumstance is that cause pasted text not to be inserted into the database. I've been running tests and I don't believe it's caused by links, tabs, new lines, or the size of the text.
Here is the relevant php file
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
header("/venue/index.php");
$title = $_POST['title'];
$post = $_POST['post'];
$title = htmlentities($title);
$post = htmlentities($post);
$operation = "INSERT INTO talk (title, user, post)
VALUES('". $title ."','". $_SESSION['name'] ."', '". $post ."');";
$result = mysqli_query($con, $operation);
}