Grabbing post data from an array of selection boxes
<p>This has been driving me crazy for the past few days. I've done something similar with check boxes and figured this would work but it didn't. I have my selection box set up like this..</p>

<pre><code>while ($row = mysql_fetch_array($queryResult2))
{

echo "&lt;table border=\"1\" \"black\" \"solid\"&gt;";
   echo "&lt;tr&gt;&lt;th&gt;News item&lt;/th&gt;&lt;td&gt;";
   echo $row['heading'];
  echo "&lt;/td&gt;&lt;/tr&gt;";
   echo "&lt;tr&gt;&lt;th&gt;Order&lt;/th&gt;&lt;td&gt;";

 if( $row['id'] == 0)
 $id = "first";
 if( $row['id'] == 1)
 $id = "second";
 if( $row['id'] == 2)
 $id = "third";
 if( $row['id'] == 3)
 $id = "fourth";
 if( $row['id'] == 4)
 $id = "fith";
 if( $row['id'] == 5)
 $id = "sixth";
 if( $row['id'] == 6)
 $id = "seventh";
 if( $row['id'] == 7)
 $id = "eighth";
 if( $row['id'] == 8)
 $id = "ninth";
 if( $row['id'] == 9)
 $id = "tenth";

 echo "&lt;select name='order[]'&gt;
 &lt;option value='$id'&gt;". $id ."&lt;/option&gt;
 &lt;option name='first' value='1'&gt;first&lt;/option&gt;
 &lt;option name='second' value='2'&gt;second&lt;/option&gt;
 &lt;option name='order[]' value='3'&gt;third&lt;/option&gt;
 &lt;option name='order[]' value='4'&gt;fourth&lt;/option&gt;
 &lt;option name='order[]' value='5'&gt;fith&lt;/option&gt;
 &lt;option name='order[]' value='6'&gt;sixth&lt;/option&gt;
 &lt;option name='order[]' value='7'&gt;seventh&lt;/option&gt;
 &lt;option name='order[]' value='8'&gt;eighth&lt;/option&gt;
 &lt;option name='order[]' value='9'&gt;ninth&lt;/option&gt;
 &lt;option name='order[]' value='10'&gt;tenth&lt;/option&gt;
 &lt;/select&gt;";
</code></pre>

<p>Then it comes over to the next page like this when I do a  print_r($_POST);</p>

<p>Array ( [order] => Array ( [0] => first [1] => second [2] => third [3] => fourth [4] => fith [5] => sixth [6] => seventh [7] => eighth [8] => ninth [9] => tenth ) ) </p>

<p>How can I grab all of my data and put it into a variable so that I may update my database with this information? </p>
