Textarea does not send long text, short text is ok

I have a form:

<form method='post' action='script.php'> <textarea id='main' name='text'></textarea> <input type='hidden' name='id' value='1'> <input type='hidden' name='a' value='ulozitclanek'> <input type='submit' name='button' value='Save'> </form> 

If I print a short text in a text field and send it, then in script.php I already have the text in the variable $_POST['text'] . However, if the text is about 70,000 characters long, it is not in $_POST['text'] . I see the Firebug weblog and my text is in the encoded line that was sent by my browser to the server. But in the $_POST array, my text is missing.

I only have this problem on the production server, when I test this script on localhost, it also works with long texts.

Is there a server option that limits maxlen post values?

In PHPinfo, I see that post_max_size set to 20M, there should be another problem, but I can not solve it myself: - (

Any ideas?

Tanks.

+4
source share
1 answer

According to Ed comment

The problem is resolved. This was the limit for POST variables on the server. Thnx for your time and be careful with your web hosting configuration. I lost a few hours solving this problem.

+1
source

Source: https://habr.com/ru/post/1387913/


All Articles