문제

I have created one website using cakephp and in that the form elements are dynamic. I have form in which around 400 radio buttons and text are is there. The form generates and submitted properly will all value in my local system.

When I test this functionality on live server, I am not getting data for all 400 radio button, It stops after around 250 or so. if I reduce the loop and do it under 200 than all works good.

As search on google i set post data size in php but it didn't worked.

If there is any kind of setting needs to make in the apache server related it please let me know.

도움이 되었습니까?

해결책

Got the solution..

We need to set the max_input_vars which is default 1000. It means we can only post 1000 element in one request. You need to add this in php.ini file

   max_input_vars = 3000

This will allow to post 3000 element from page.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top