PHP: Echo value of selected item from a dependable dropdown menu
<p>I am currently working with a Dependable dropdown menu that functions with the help of jQuery and PHP. The values are being pulled of MySQL database. Is there away to php echo the selected value of a dependable drop down menu? </p>

<p><a href="http://www.ssdtutorials.com/tutorials/series/dependable-dropdown.html" rel="nofollow">EXAMPLE</a></p>

<p><strong>HTML/PHP</strong></p>

<pre><code>&lt;form action="" method="post"&gt;

        &lt;select name="gender" id="gender" class="update"&gt;
            &lt;option value=""&gt;Select one&lt;/option&gt;
            &lt;?php if (!empty($list)) { ?&gt;
                &lt;?php foreach($list as $row) { ?&gt;
                    &lt;option value="&lt;?php echo $row['id']; ?&gt;"&gt;
                        &lt;?php echo $row['name']; ?&gt;
                    &lt;/option&gt;
                &lt;?php } ?&gt;
            &lt;?php } ?&gt;
        &lt;/select&gt;

        &lt;select name="category" id="category" class="update"
            disabled="disabled"&gt;
            &lt;option value=""&gt;----&lt;/option&gt;
        &lt;/select&gt;

        &lt;select name="colour" id="colour" class="update"
            disabled="disabled"&gt;
            &lt;option value=""&gt;----&lt;/option&gt;
        &lt;/select&gt;

&lt;/form&gt;
</code></pre>
