title: Coldfusion Select Option Value Get Items From Database
body: <pre><code>        &lt;form action="blog.Logboek" method="post" name="Update_what"&gt;
             &lt;select size="1" name="Whats"&gt;
                 &lt;option&gt;Select an item&lt;/option&gt;
                  &lt;cfloop array="#VARIABLES.Whats#" item="What_name"&gt;
                 &lt;option VALUE="#What.id#"&gt;#item.What_name#&lt;/option&gt;
                  &lt;/cfloop&gt;
             &lt;/select&gt;
             &lt;input type="submit" value="Update_what"&gt;
         &lt;/form&gt;
  </code></pre>
  
  <p>I get a list of items with what is between the option tag and not the items from the database. </p>
  
  <p>What am I doing wrong?</p>