View Full Version : PHP does not allow all POST variables
10-16-2012, 08:44 AM
I have a form with 3000 fields, only the first 1000 variables are added to POST array and saved to the db.
I checked the php.in file the post_max_vars setting is not found. However when i check the php_info page it shows post_max_vars=1000.
How can i change this, since i dont have this directive in in the php.ini file
10-16-2012, 09:52 AM
you can try one of these two,
try the php ini first, if that does not work (sometimes it happens)
then do the htaccess method
(php ini )
(or in htaccess)
php_value post_max_size 20M
10-16-2012, 10:08 AM
I have a form with 3000 fields,
Have a look at http://stackoverflow.com/questions/9399315/how-to-increase-maximum-post-variable-in-php
btw, why would you need that much input elements in a single form?
10-16-2012, 10:11 AM
LOL abduraooft yeah it does seem like alot huh, poss total overload. Maybe its the new NASA space station auto toilet with 3000 ways to flush your stuff lol, who knows.... :D
10-17-2012, 02:32 AM
You can add it to the php.ini if it's not there:
; PHP 5.3.9+
After you have updated make sure you restart PHP and check your phpinfo() (http://php.net/phpinfo) again.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.