PHP dynamic dropdown menu list
<p>I have created a dynamic dropdown menu list which lists a column in a database. I can get that to show up fine but when I want to submit a result and POST that to another file all I get is an 'undefined' index error. Here is the last aprt of my index.php file. </p>

<pre><code>   &lt;select name="bob"&gt;
    &lt;?php
        while($row = mysqli_fetch_assoc($result))
        {
        extract ($row);
        echo "&lt;option value='$forename'&gt;$forename&lt;/option&gt;\n";
        }
            ?&gt;
            &lt;/select&gt;

        &lt;form action='processnames.php' method='POST'&gt;
        &lt;input type='submit' value='Submit' /&gt;
        &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;
</code></pre>

<p>The processnames.php has the following code: </p>

<pre><code>    Welcome &lt;?php 
    session_start();
    echo $_POST["bob"]; ?&gt;&lt;br /&gt;
</code></pre>

<p>Any help would be greatly appreciated. Thanks!</p>
