title: PHP PFBC Select value to be different than Shown (PHP form Build Class)
body: <p>PFBC is a simple yet totally undocumented framework that is really useful to get started, it is less complex than other frameworks and looks really nice Out of the box.</p>
  
  <p><a href="http://code.google.com/p/php-form-builder-class/" rel="nofollow">http://code.google.com/p/php-form-builder-class/</a></p>
  
  <p>I have the following two arrays in PHP:</p>
  
  <pre><code>$area = [0=&gt;"name", 10=&gt;"name2", 11=&gt;"name3"];
  $ppl = [0=&gt;"name", 1=&gt;"name2", 2=&gt;"name3"];
  </code></pre>
  
  <p>I want to use them as select, where the user will be able to choose between the names.
  This is the code I use for each:</p>
  
  <pre><code>$form-&gt;addElement(new Element\Select(htmlentities("Area type:"), 
      "area", $area, array("required" =&gt; 1)
  ));
  
  $form-&gt;addElement(new Element\Select(htmlentities("Person:"), 
      "ppl", $ppl, array("required" =&gt; 1)
  ));
  </code></pre>
  
  <p>I was expecting to have this:</p>
  
  <pre><code>&lt;select id="area" required="" name="area"&gt;
      &lt;option value="1"&gt;
         name
      &lt;/option&gt;
      &lt;option value="10"&gt;
          name2
      &lt;/option&gt;
      &lt;option value="11"&gt;
          name3
      &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Wich <em>i got</em> for the first array ($area) but for the second array ($ppl) i've got:}</p>
  
  <pre><code>&lt;select id="ppl" required="" name="ppl"&gt;
      &lt;option value="name"&gt;
         name
      &lt;/option&gt;
      &lt;option value="name2"&gt;
          name2
      &lt;/option&gt;
      &lt;option value="name3"&gt;
          name3
      &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>--
  I need the numeric code as value since i will use what the user chooses to query a database by that id</p>
  
  <p>Any ideas of what might happen?</p>