how to get values from drop down list in php
<p>I have several drop down lists in a table, I am trying to retrive the value of the drop down list if its not 0.</p>

<p>I have a table of items each item has the drop down list. Below is how I create the drop down list, I give it the tableid as a name because this is a unique identifier for the particular product.</p>

<pre><code>echo "&lt;td&gt;&lt;select name=". $row['goosedown_id'] ."&gt;
                &lt;option value=''&gt; 0 &lt;/option&gt;
                &lt;option&gt;1&lt;/option&gt;
                &lt;option&gt;2&lt;/option&gt;
                &lt;option&gt;3&lt;/option&gt;
                &lt;option&gt;4&lt;/option&gt;
                &lt;option&gt;5&lt;/option&gt;
                &lt;option&gt;6&lt;/option&gt;
                &lt;option&gt;7&lt;/option&gt;
                &lt;option&gt;8&lt;/option&gt;
            &lt;/select&gt;
        &lt;/td&gt;";
</code></pre>

<p>Then once the form is submitted I am trying to just print any values i can... cause im not sure how to proceed... I do this like so.</p>

<pre><code>$goosedown_id = check_input($_POST['goosedown_id']);
//..

goose down = $goosedown_id
</code></pre>

<p>I am hoping to be able to print out the associated values or calculate the price based off other items in the table i.e. price etc. but I am hoping someone can help me with trying to access the items that are no 0 first.</p>
