<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I use an onClick function (an event handler would probably be
    better) for buttons rather than the default behavior. In my case I
    use it to pre-process the data so it is more easily managed by
    Dancer2.<br>
    <br>
    <div class="moz-cite-prefix">On 10/6/2015 8:46 AM, Richard Reina
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKLxnzbZdoqrMqMT23pZSAWk7dfjpKfAaiwt6ebKb8R0TBq2WQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">2015-10-01 17:33 GMT-05:00 Andrew
            Beverley <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:andy@andybev.com" target="_blank">andy@andybev.com</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
                class="">On Thu, 2015-10-01 at 16:10 -0500, Richard
                Reina wrote:<br>
                > Both forms have submit buttons but I am not sure
                how to make the POST<br>
                > route understand that the user is done with the
                form so that I can in<br>
                > turn make it save the data.<br>
                <br>
              </span>You can differentiate between submit buttons by
              checking for the name of<br>
              the submitted button, just like any other control on the
              form.<br>
              <br>
              If I've understood correctly, then I'd just have the one
              form, and use<br>
              different submit button names.<br>
              <div class="HOEnZb">
                <div class="h5"><br>
                  Andy<br>
                  <br>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
        <div class="gmail_extra">Hi Andy,<br>
          <br>
        </div>
        <div class="gmail_extra">The only thing with the approach of two
          submit buttons is that the second submit button triggers the
          required fields that are meant for the first submit button and
          thus don't allow the submission. Would you happen to know a
          way around this?<br>
          <br>
        </div>
        <div class="gmail_extra">Thanks<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dancer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a>
<a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>