title: don't get input from field array POST
body: <p>I've downloaded a dynamic input field script from google,</p>
  
  <p>but now I want to get the values from it.</p>
  
  <p>This is the script;</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
      var max_fields      = 10; //maximum input boxes allowed
      var wrapper         = $(".input_fields_wrap"); //Fields wrapper
      var add_button      = $(".add_field_button"); //Add button ID
  
      var x = 1; //initlal text box count
      $(add_button).click(function(e){ //on add input button click
          e.preventDefault();
          if(x &lt; max_fields){ //max input box allowed
              x++; //text box increment
              $(wrapper).append('&lt;div&gt;&lt;input type="text" name="mytext['+x+']"/&gt;&lt;a href="#" class="remove_field"&gt;Remove&lt;/a&gt;&lt;/div&gt;'); //add input box
          }
      });
  
      $(wrapper).on("click",".remove_field", function(e){ //user click on remove text
          e.preventDefault(); $(this).parent('div').remove(); x--;
      })
  });
      &lt;/script&gt;
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;form action="addquestiontosection2.php" method="post"&gt;
  
  &lt;div class="input_fields_wrap"&gt;
              &lt;button class="add_field_button"&gt;Add more values&lt;/button&gt;
              &lt;div&gt;&lt;input type="text" name="mytext[1]"&gt;&lt;/input&gt;&lt;/div&gt;
          &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>PHP</p>
  
  <pre><code>$item1 = $_POST['mytext']['1'];
  
  $item2= $_POST['mytext']['2'];
  </code></pre>
  
  <p>Item1 and Item2 returns empty.</p>
  
  <p>Thank you very much.</p>