Reputation: 418
I have 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 type short text into a textarea and submit, then in script.php I already have my text in variable $_POST['text']
. However if the text is about 70000 character long, it isn't in $_POST['text']
. I can see net log from Firebug and my text is in encoded string, which was sent by my browser to the server. But in $_POST
array is my text missing.
This problem I have only on production server, when I test this script on localhost, it works also with long texts.
Is there any server option, which limits maxlen of post values?
In PHPinfo, I can see post_max_size
set to 20M, there must be another problem, but I can't solve it on my own :-(
Any ideas?
Tanks.
Upvotes: 4
Views: 3153
Reputation: 11213
As per Eda's Comment
Problem solved. It was limit for POST variables on server. Thnx for your time and be careful about webhosting config. I've lost several hours by solving this problem
Upvotes: 1