title: How to POST an associative array in PHP
body: <p>I have the following form:</p>
  
  <pre><code>&lt;form action="options.php" method="post"&gt;
      &lt;input type="text" name="deptid" id="deptid" /&gt;
      &lt;input type="text" name="deptname" id="deptname" /&gt;
      &lt;input type="submit" name="submit" id="submit" value="save" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Is it possible to pass the two values into one associative array <strong>BEFORE</strong> submission ?
  I would like to pass it in this form:</p>
  
  <pre><code>array('deptid'=&gt;'deptname')
  </code></pre>
  
  <p>I need this because I avoid to modify the script of the destination php file(options.php)</p>
  
  <p>Thanks.</p>