title: How to send PHP array by html form by POST type
body: <p>I am trying to send PHP array by html form by POST. The code which I am using is below:</p>
  
  <pre><code>&lt;?php
      $content = array('111', '222' );
  ?&gt;
  
      &lt;html&gt;
      &lt;head&gt;
      &lt;title&gt;PAGE TITLE&lt;/title&gt;
      &lt;/head&gt;
          &lt;body&gt;
              &lt;form name="downloadexcel" action="downloadexcel.php" method="post"&gt;
                  &lt;input type="text" name="data" value="&lt;?php echo $content; ?&gt;"/&gt;
                  &lt;a href="javascript: submitform()"&gt;Download&lt;/a&gt;
              &lt;/form&gt;
              &lt;script type="text/javascript"&gt;
                  function submitform()
                  {
                    document.downloadexcel.submit();
                  }
              &lt;/script&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>How can I send an PHP array by html form?</p>
  
  <p>Any web link or source code would be appreciated.</p>