title: html multi <select> array in PHP post
body: <pre><code>&lt;form&gt;        
      &lt;input class="date-pick"  type="text" value="2010/08/02" name="date" /&gt;
      &lt;table id="events_selection"&gt;            
          &lt;tr&gt;                
              &lt;td&gt;                    
                  &lt;img src="/admin/ajax/image.php?filename=/media/immagini/danieledaniela/1.jpg&amp;maxw=200" /&gt;
                  &lt;select name="1"&gt;
                      &lt;option value="0"&gt; NESSUN EVENTO &lt;/option&gt;                        
                      &lt;option value="5"&gt;anelli&lt;/option&gt;                        
                      &lt;option value="8"&gt;ballo&lt;/option&gt;                        
                      &lt;option value="6"&gt;cerimonia in chiesa&lt;/option&gt;                        
                      &lt;option value="13"&gt;dettagli&lt;/option&gt;                        
                      &lt;option value="9" selected="selected"&gt;&lt;strong&gt;festa&lt;/strong&gt;&lt;/option&gt;                        
                      &lt;option value="4"&gt;gli sposi&lt;/option&gt;                        
                      &lt;option value="1"&gt;la sposa&lt;/option&gt;                        
                      &lt;option value="3"&gt;lancio del riso&lt;/option&gt;                        
                      &lt;option value="2"&gt;lo sposo&lt;/option&gt;                        
                      &lt;option value="11"&gt;preparazione sposa&lt;/option&gt;                        
                      &lt;option value="10"&gt;preparazione sposo&lt;/option&gt;                        
                      &lt;option value="7"&gt;ristorante&lt;/option&gt;                        
                      &lt;option value="12"&gt;varie&lt;/option&gt;                        
                  &lt;/select&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;img src="/admin/ajax/image.php?filename=/media/immagini/danieledaniela/30.jpg&amp;maxw=200" /&gt;
                  &lt;select name="31"&gt;
                      &lt;option value="0"&gt; NESSUN EVENTO &lt;/option&gt;                        
                      &lt;option value="5"&gt;anelli&lt;/option&gt;                        
                      &lt;option value="8"&gt;ballo&lt;/option&gt;                        
                      &lt;option value="6"&gt;cerimonia in chiesa&lt;/option&gt;                        
                      &lt;option value="13"&gt;dettagli&lt;/option&gt;                        
                      &lt;option value="9"&gt;festa&lt;/option&gt;                        
                      &lt;option value="4"&gt;gli sposi&lt;/option&gt;
                      &lt;option value="1"&gt;la sposa&lt;/option&gt;                        
                      &lt;option value="3"&gt;lancio del riso&lt;/option&gt;                        
                      &lt;option value="2"&gt;lo sposo&lt;/option&gt;                        
                      &lt;option value="11"&gt;preparazione sposa&lt;/option&gt;                        
                      &lt;option value="10"&gt;preparazione sposo&lt;/option&gt;                        
                      &lt;option value="7"&gt;ristorante&lt;/option&gt;                        
                      &lt;option value="12"&gt;varie&lt;/option&gt;                        
                  &lt;/select&gt;
              &lt;/td&gt;                
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/form&gt;​​​​​​​​
  </code></pre>
  
  <p>HI, in a situation like this (which is an example, there are many selects and other inputs) posting this form would give a $_POST like this</p>
  
  <pre><code>array {
    date =&gt; "2010/08/09"
    input1 =&gt; "bla"
    input3 =&gt; "bla2"
    //list of selection
    1 =&gt; 2
    2 =&gt; 4
    3 =&gt; 5
    //ends list of selection
    input 4 =&gt; "bla4"
  }
  </code></pre>
  
  <p>Can I directly from the HTML form put the <code>&lt;select&gt;</code>s in seperate array since they represent a grouped array?</p>
  
  <pre><code>array {
    date =&gt; "2010/08/09"
    input1 =&gt; "bla"
    input3 =&gt; "bla2"
    //list of selection
    array {
        1 =&gt; 2
        2 =&gt; 4
        3 =&gt; 5
    }
    //ends list of selection
    input 4 =&gt; "bla4"
  }
  </code></pre>
  
  <p>Thanks!</p>