title: Zend two submit buttons same name
body: <p>I built a form class extending zend_form.I have two submitting buttons :</p>
  
  <pre><code>$like=new Zend_Form_Element_Image('vote');
  $like-&gt;setImage($config-&gt;path-&gt;images."up.png")
  -&gt;setValue(2);
  
  $dislike=new Zend_Form_Element_Image('vote');
  $dislike-&gt;setImage($config-&gt;path-&gt;images."down.png")
  -&gt;setValue(1);
  </code></pre>
  
  <p>I'd want to have two submit buttons with same name and different value so that I can later access the value of the submitted one  by a switch statement in the controller:</p>
  
  <pre><code>$submit = $this-&gt;_request-&gt;getPost('vote');
  
   switch($submit) {
   case 'one':
   // button one was pressed
   break;
   case 'two':
  }
  
  }
  </code></pre>
  
  <p>But If I do set those with the same name the last one is overriding the first so only one button is output.</p>
  
  <p>With file elements theres a method setMultifile() that does the trick.</p>
  
  <p>what should I do here?</p>
  
  <p>thanks</p>
  
  <p>Luca</p>