Form doesn't submit all fields
<p>I have a pretty huge form which I am able to extend <strong>dynamically with JavaScript</strong>. In this form I am having different <strong>DataSets with about 50 fields</strong> to submit each. When I submit the form I am running through a for loop <strong>from 0 to 100</strong> to check which fields are set. So I create the HTML like this:</p>

<pre><code>&lt;form id = "formUpdate" role="form" action="index.php?action=update" method="post"&gt;
    &lt;table id="table" class="table table-hover"&gt;&lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt; Head1
            &lt;th&gt; Head2
            &lt;th&gt; Head3
            &lt;th&gt; Head4
            &lt;th&gt; Head5
            &lt;th&gt; Head6
            &lt;th&gt; ...
                &lt;tbody&gt;
                    &lt;?php
                        for ($i=0;$i&lt;$dataSets;$i++){  ?&gt;
                            &lt;tr&gt;
                                &lt;td style="text-align: center; vertical-align: middle;"&gt;&lt;label&gt;&lt;?php echo $test[$i]['1']; ?&gt; &lt;/label&gt;&lt;/td&gt;
                                &lt;td style="text-align: center; vertical-align: middle;"&gt; &lt;input required class="form-control formsUser" form="formUpdate" name="fieldA&lt;?php echo $test[$i]['2']; ?&gt;" value=""&gt;&lt;/input&gt;
                                &lt;td style="text-align: center; vertical-align: middle;"&gt; &lt;textarea style="height:34px" class="form-control formsUser" form="formUpdate" name="fieldB&lt;?php echo $test[$i]['3'];?&gt;" required&gt;&lt;/textarea&gt;
                                &lt;td style="text-align: center; vertical-align: middle;"&gt; &lt;input class="form-control formsUser" form="formUpdate" name="fieldC&lt;?php echo $test[$i]['4']; ?&gt;" required value=""&gt;&lt;/input&gt;
                                &lt;td style="text-align: center; vertical-align: middle;"&gt; &lt;input class="form-control formsUser" form="formUpdate" name="fieldD&lt;?php echo $test[$i]['5']; ?&gt;" required value=""&gt;&lt;/input&gt;
                                &lt;td style="text-align: center; vertical-align: middle;"&gt; &lt;input class="form-control formsUser" form="formUpdate" name="fieldE&lt;?php echo $test[$i]['6']; ?&gt;" value=""&gt;&lt;/input&gt;
                            &lt;/tr&gt;
                   &lt;?php } ?&gt;
   &lt;/table&gt;
   &lt;button class="btn btn-success" form="formUpdate" type="submit"&gt; Submit &lt;/button&gt;
&lt;/form&gt;
</code></pre>

<p>PHP:</p>

<pre><code>public function update(){
     print_r($_REQUEST);
     for ($i=0;$i&lt;100;$i++){
          $string = "fieldA".$i;

          if (isset($_POST[$string])){
              // set the other _POSTS
          }
          else {
              //do something different
          }
      }
} 
</code></pre>

<p>But this works only for the <strong>first 10 Datasets</strong>. When I call <code>print_r($_REQUEST);</code> it also just contains the content of the fields of the first 10 Datasets. I read about the limit of <code>max_input_vars</code> in the <strong>php.ini</strong> and increased this value, but nothing has changed. Besides I shouldn't reach the default value of 1,000 with my data. I also tried changing the value of <code>max_input_nesting_level</code>, <code>memory_limit</code> and <code>post_max_size</code>.</p>