title: Poll form (view) creates security errors in CakePHP
body: <p>I am writing a simple poll for Cakephp. I have created tables polls and poll_votes. Poll contains 7 columns: id,question,numberofanswers,answer1,answer2,answer3,answer4. PollVote contains 4: id,poll_id,ip,vote. If this works, I might be adding a new table called PollAnswers as a way to get rid of the answer-limit.</p>
  
  <p>Unfortunately the view I made causes security errors. I would prefer to use the form-helper as a whole, but I have not figured out how since I need radio-buttons with multiple options that have id's 1 to 4, but show answer1 to answer4.</p>
  
  <pre><code>[daweb@directadmin01 public_html]$ cat models/poll.php
  &lt;?php
  class Poll extends AppModel {
          var $name = 'Poll';
          var $displayField = 'question';
  
          var $hasMany = array(
                  'PollVote' =&gt; array(
                          'className' =&gt; 'PollVote',
                          'foreignKey' =&gt; 'poll_id',
                          'dependent' =&gt; false
                  )
          );
  }
  ?&gt;
  [daweb@directadmin01 public_html]$ cat models/poll_vote.php
  &lt;?php
  class PollVote extends AppModel {
          var $name = 'PollVote';
  
          var $belongsTo = array(
                  'Poll' =&gt; array(
                          'className' =&gt; 'Poll',
                          'foreignKey' =&gt; 'poll_id'
                  )
          );
  }
  ?&gt;
  [daweb@directadmin01 public_html]$ cat views/polls/view.ctp
  &lt;h2&gt;&lt;?=$polls[0]['Poll']['question']?&gt;&lt;/h2&gt;
  &lt;?php
  echo $this-&gt;Form-&gt;create('Poll');
  ?&gt;
  &lt;br /&gt;&lt;p&gt;
  &lt;select name="PollName" id="PollFieldId"&gt;
  &lt;option value="0"&gt;&lt;?=$polls[0]['Poll']['answer1']?&gt;&lt;/option&gt;
  &lt;option value="1"&gt;&lt;?=$polls[0]['Poll']['answer2']?&gt;&lt;/option&gt;
  &lt;option value="2"&gt;&lt;?=$polls[0]['Poll']['answer3']?&gt;&lt;/option&gt;
  &lt;option value="3"&gt;&lt;?=$polls[0]['Poll']['answer4']?&gt;&lt;/option&gt;
  &lt;/select&gt;
  &lt;?php
  echo $this-&gt;Form-&gt;input('id', array('type' =&gt; 'hidden'));
  echo $this-&gt;Form-&gt;end('Submit');
  ?&gt;
  &lt;/p&gt;
  [daweb@directadmin01 public_html]$
  </code></pre>
  
  <p>I am honestly not sure I am creating the Poll application with the right design, so general advice is welcome. Unfortunately I was unable to find examples of polls written in Cakephp to help me.</p>