title: php form sending array in input's value field with POST
body: <p>I have a question about sending data with POST in a form.</p>
  
  <p>I have to send an <code>array(j, i, 59, j, k, 59);</code> like value of a checkbox.</p>
  
  <p>Checkbox with same name should accept multiple values, so i need to send a multidimensional array</p>
  
  <pre><code>array("sunday", "Monday", ...);
  echo "&lt;form action ='' method='POST'&gt;";
  // some code...
  for ($i = 0; $i &lt; count($day); $i++) {
      for ($j = 0; $j &lt; $N; $j++) {
          $value = array($va1, $var2, $var3, ..$varN);
          echo "&lt;input type='checkbox' name='$day" . "[]' value='$value' /&gt; $i-$j";
      }
  }
  echo "&lt;/form&gt;";
  </code></pre>
  
  <p><code>var1:varN</code> are integer that depends by <code>i, j</code> and other variables</p>
  
  <p>in <code>$_POST['Monday']</code> should be <code>array((array(par1,..ParN),(array(par1,..ParN))</code> but it don't work, 
  because in the receiving side, code like</p>
  
  <pre><code>$Data= $_POST['Monday'] ;
  </code></pre>
  
  <p>gets (using var_dump):</p>
  
  <p>array[k] (Where k is the number of checked box, and it is ok).
  Each entry is the string(5)="Array" but i want an array of value, not a string.</p>
  
  <p>Can someone help me? 
  Thank you very much and sorry for my bad english!</p>