Two Submit buttons in one form; need help with formmail submit

Discussion in 'JavaScript' started by wright59, Sep 1, 2007.

  1. #1
    I have a form with two submits, one that adds the results in multiple fields and displays it and one that when finished with the results, can submit those results through formmail. I'm using an onclick() function for both, but I'm not sure how to use it for the formmail. This is what I have:

    onClick=""action="/cgi-bin/formmail/formmail.pl" method="post""

    I know that the quotes are not right, but not sure if this may be the problem or am I totally wrong in the way I'm doing this.

    Any help in this matter would be of a huge help.

    Thanks in advance, Bill
     
    wright59, Sep 1, 2007 IP
  2. Awanish

    Awanish Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    As far as quotes are concerned you can you single quote too
    something like onClick='action="/cgi-bin/formmail/formmail.pl"' If I am getting it correctly.

    Other approach is to have a hidden field which gets set on one submit and other submit checks that

    so basically to have a function call onClick="doThisFirst()" and then onClick="doThisNow()"
     
    Awanish, Sep 4, 2007 IP