Code:
echo '<form method="POST" action="test.php" id="textarea">
<textarea rows="40" cols="200" name="textarea" form="textarea">Text</textarea><br>
<input type="submit">
</form>';
$string = $_POST["textarea"];
exit();
When I have a string that contains the word "substring" example: JustSomeText&substring.SomeMoreText I have the following error:
Not Acceptable
An appropriate representation of the requested resource /test.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I am clueless about this error. I know that the problem is with the word substring and with the method POST but tried to google it without any success.
Edited: test.php is the file where the code is contained. I have narrowed the code that is responsible for the error above. All works fine even with huge strings with all kinds of characters but when that word is in the string I have that error.