Jump to content

Form with many fields does not submit.


Repgahroll

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/183439-form-with-many-fields-does-not-submit/
Share on other sites

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.

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?

 

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.