Repgahroll Posted November 30, 2009 Share Posted November 30, 2009 Hello. I'm making a "dynamic" form using php and javascript to hide/show simple text inputs. However, if i add more than (approx.) 180 inputs, the form simply does not submit, it just returns to the same page, like a reload. If i decrease the number of inputs to something like 150, everything works. I can add as many unnamed fields as i want without problems. So i think it's PHP fault. I'm using the "post" method to transfer the vars to another file that check the fields and store'me on db. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/183439-form-with-many-fields-does-not-submit/ Share on other sites More sharing options...
mrMarcus Posted November 30, 2009 Share Posted November 30, 2009 So i think it's PHP fault. of course it is. that's one heck of a form. perhaps your error handling in the inputs from 150 to 180 are causing it? i'm afraid to ask you to post your form, might crash the internet. how about posting some of the relevant code. Quote Link to comment https://forums.phpfreaks.com/topic/183439-form-with-many-fields-does-not-submit/#findComment-968287 Share on other sites More sharing options...
PFMaBiSmAd Posted November 30, 2009 Share Posted November 30, 2009 Is it your form processing code that is redirecting back to the form or is it the form itself that is not submitting to the URL of the form processing code? What checking do you have in your form or your form processing code that would tell you what is happening? Quote Link to comment https://forums.phpfreaks.com/topic/183439-form-with-many-fields-does-not-submit/#findComment-968291 Share on other sites More sharing options...
cags Posted November 30, 2009 Share Posted November 30, 2009 It seems unlikely even with 180 controls, but then I don't know what your storing in them or if your dealing with any files, but what is the value of post_max_size in your php.ini? If you exceed the value the $_POST array will be empty which could perhaps cause your problem. You could test it by sending a $_GET variable, ie set the action of the form to "whatever.php?working=1" and checking on the page if $_GET['working'] is set. Quote Link to comment https://forums.phpfreaks.com/topic/183439-form-with-many-fields-does-not-submit/#findComment-968302 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.