Form Action Question - Javascript solution?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Swizylstik
    New Member
    • Sep 2006
    • 12

    #1

    Form Action Question - Javascript solution?

    I am creating a donation form which needs to be processed through Paypal, therefore [form action="https://www.paypal.com/cgi-bin/webscr" method="post"] will do the trick.

    The trouble is that I would also like the form to go through a formmailer script in order that the data from the form is sent to my email account. I have a script that will do this: [form action="cgi-bin/uploadformmaile r.cgi" method="post"] My question is how can I get the form to perform BOTH actions on submission?

    You can see the form here"

    Any help would be greatly appreciated!
  • Swizylstik
    New Member
    • Sep 2006
    • 12

    #2
    Form Action Question - Javascript solution?

    I am creating a donation form which needs to be processed through Paypal, therefore [form action="https://www.paypal.com/cgi-bin/webscr" method="post"] will do the trick.

    The trouble is that I would also like the form to go through a formmailer script in order that the data from the form is sent to my email account. I have a script that will do this: [form action="cgi-bin/uploadformmaile r.cgi" method="post"] My question is how can I get the form to perform BOTH actions on submission?

    You can see the form here: HTML FORM

    Any help would be greatly appreciated!

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Post the values to a cgi script which emails the data and then posts to Paypal.

      You could also use JavaScript to make an Ajax request to your script first and then submit to Paypal.

      Comment

      Working...