title: Playframework form and two submit buttons
body: <p>I had form for editing order but I had to add button for removing order. Now I have form with two submit buttons:</p>
  
  <pre><code>@helper.form(routes.Order.editOrder,'class -&gt; "form-horizontal") {
     @helper.inputText(
        PlayMagicForJava.javaFieldtoScalaField(editOrderForm("date")),
        '_label -&gt; "Date:",
        '_help -&gt; ""
     )
     @helper.inputText(
        PlayMagicForJava.javaFieldtoScalaField(editOrderForm("place_from")),
        '_label -&gt; "From:",
        '_help -&gt; ""
     )
     &lt;button type="submit" name="edit" id="edit" class="btn btn-primary"&gt;Edit Order&lt;/button&gt;
     &lt;button type="submit" name="remove" id="remove" value="remove" class="btn"&gt;Remove order&lt;/button&gt;
  }
  </code></pre>
  
  <p>My function in controler for form just for editing:</p>
  
  <pre><code>public static Result editOrder(){
   Order user = User.findByEmail(session("email"));
   Form&lt;Order&gt; editOrderFormFilled = editOrderForm.bindFromRequest();
   Order order = Order.findByID(editOrderFormFilled.get().id);
       if(editOrderFormFilled.hasErrors()) {
           return badRequest();
       }
       else if(user.id != order.created_by){
           return badRequest();
       }else{
          return OK();
       }
   }
  </code></pre>
  
  <p>How can I handle which button was submited?</p>