problem with drop down value in php
<p>i have a drop down list which is populated dynamically from database table i.e</p>

<pre><code>&lt;form method=post action='dropdown.php'>
&lt;?php
$query="SELECT DISTINCT style FROM style";
$result = mysql_query ($query);
echo "&lt;select name=style[] size=4 value='' multiple>Choose Style&lt;/option>";
         while($nt=mysql_fetch_array($result)){//Array or records stored in $nt
          echo "&lt;option value=$nt[style]>$nt[style]&lt;/option>";
           }
         echo "&lt;/select>";// Closing of list box
          mysql_close($conn);?>
&lt;input type=submit> &lt;/form></code></pre>

<p>When i post the form to another page the value of dropdown after space is not shown i.e if i select (Micro Pave) from drop down list then it will only show Micro. my php code is</p>

<pre><code>$style=$_POST['style'];
if( is_array($style)){
while (list ($key, $val) = each ($style)) {
echo $val."&lt;br/>";
}
}</code></pre>
