title: How do I save data for a drop-down in a form generation application in CakePHP?
body: <p>I am using CakePHP and MySQL for my application</p>
  
  <p>I have three tables:</p>
  
  <ul>
  <li>Forms (id, name, created, modified)</li>
  <li>Attributes (id, form_id, label, type, sequenceno)</li>
  <li>Results (id, form_id, attribute_id, label, value, submitted_by)</li>
  </ul>
  
  <p>The application I am developing is like form Builder.
  Generating the fields based on the type (eg .. If type="text" ->generate textbox)</p>
  
  <p>Now I am having a doubt regarding if I my type is "Dropdown" then it will have a dropdown box with some options. How can I keep those choice name?
  For example:</p>
  
  <pre><code>&lt;select id="jselect"&gt;
   &lt;option id="choice1"&gt;Male&lt;/option&gt;
   &lt;option id="choice2"&gt;Female&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>My sample entry in the table will be like in attributes table</p>
  
  <pre><code>       1 1 name text 1
         2 1 age number 2
         3 1 address Textarea 3
  </code></pre>
  
  <p>And in my results table</p>
  
  <pre><code>       1 1 1 name aruna 
         2 1 2 age 22
         3 1 3 address XYZ
  </code></pre>
  
  <p>that is how can I save male and female choices in the table? Since I will have the privilege to change the choice name even in between.</p>