title: PHP - Multidimensional Array Input ( Having File Type & Text Type ) Form Submission
body: <p><strong>View</strong> :</p>
  
  <pre><code>&lt;div&gt;
     &lt;input type='file' name="active_board_data[pictures][]"&gt;
     &lt;input type='text' name="active_board_data[name][]"&gt;
     &lt;input type='text' name="active_board_data[description][]"&gt;
  &lt;/div&gt;
  &lt;div&gt;
     &lt;input type='file' name="active_board_data[pictures][]"&gt;
     &lt;input type='text' name="active_board_data[name][]"&gt;
     &lt;input type='text' name="active_board_data[description][]"&gt;
  &lt;/div&gt;
  &lt;div&gt;
     &lt;input type='file' name="active_board_data[pictures][]"&gt;
     &lt;input type='text' name="active_board_data[name][]"&gt;
     &lt;input type='text' name="active_board_data[description][]"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>After Submitting it <code>var_dump($_POST['active_board_data']);</code> shows</p>
  
  <pre><code>array (size=3)
    'name_description_input' =&gt; 
      array (size=3)
        0 =&gt; string '' (length=0)
        1 =&gt; string '&lt;p&gt;sdfv&lt;/p&gt;' (length=11)
        2 =&gt; string '' (length=0)
    'relevant_details_description_input' =&gt; 
      array (size=3)
        0 =&gt; string '&lt;p&gt;dsrvsd&lt;/p&gt;' (length=13)
        1 =&gt; string '' (length=0)
        2 =&gt; string '&lt;p&gt;sdfvr&lt;/p&gt;' (length=12)
    'pictures' =&gt; 
      array (size=1)
        0 =&gt; string '' (length=0)
  </code></pre>
  
  <p>And <code>var_dump($_FILES['active_board_data']);</code> shows </p>
  
  <pre><code>array (size=5)
    'name' =&gt; 
      array (size=1)
        'pictures' =&gt; 
          array (size=3)
            0 =&gt; string 'active_trustees_26-Oct-2014__08_10_00__25408.jpg' (length=48)
            1 =&gt; string 'active_trustees_26-Oct-2014__08_10_18__7037.jpg' (length=47)
            2 =&gt; string 'active_trustees_26-Oct-2014__08_10_18__3779.jpg' (length=47)
    'type' =&gt; 
      array (size=1)
        'pictures' =&gt; 
          array (size=3)
            0 =&gt; string 'image/jpeg' (length=10)
            1 =&gt; string 'image/jpeg' (length=10)
            2 =&gt; string 'image/jpeg' (length=10)
    'tmp_name' =&gt; 
      array (size=1)
        'pictures' =&gt; 
          array (size=3)
            0 =&gt; string 'C:\wamp\tmp\php128F.tmp' (length=23)
            1 =&gt; string 'C:\wamp\tmp\php12A0.tmp' (length=23)
            2 =&gt; string 'C:\wamp\tmp\php12B0.tmp' (length=23)
    'error' =&gt; 
      array (size=1)
        'pictures' =&gt; 
          array (size=3)
            0 =&gt; int 0
            1 =&gt; int 0
            2 =&gt; int 0
    'size' =&gt; 
      array (size=1)
        'pictures' =&gt; 
          array (size=3)
            0 =&gt; int 49543
            1 =&gt; int 52657
            2 =&gt; int 29884
  </code></pre>
  
  <p>Is this the correct way to have have both file and text on same array in php after form submission? Or should I have to change the markup? <strong>Notes:</strong> I am creating the <strong>div</strong> dynamically. PLEASE HELP.Thanks in advance.
  Here is a picture of form to submit:
  <img src="https://i.stack.imgur.com/XoHW0.png" alt="enter image description here"></p>