title: passing an html form array to php file
body: <p>I am trying to get information from an html form and pass it to my php file as an array</p>
  
  <p>here is a snippet of the code for my html form:</p>
  
  <pre><code>&lt;form action ="upload.php" method="post"&gt;
      Name&lt;input id= "n" type="text" name="info[name]" /&gt;&lt;br /&gt;
      Address: &lt;input id="a" type = "text" name="info[address]" /&gt;&lt;br /&gt;
      City: &lt;input id="c" type = "text" name="info[city]" /&gt;&lt;br /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>then in my php file I tried to print the content:</p>
  
  <pre><code>$information = $_POST['info'];
  
  echo $information['name'];
  </code></pre>
  
  <p>but nothing gets printed to the page</p>