Click to See Complete Forum and Search --> : [ASP] Dual Submission With One Button


Traiken
09-03-2008, 04:57 PM
Basically, I'm making a page that links up to PayPal with the "Donate" button however at the same time I have a form on the page that needs to be saved into a database.

After hours of thinking I figured the 2 best ways would be either to make a function that saves information input in the form without it submitting using onClick however I don't think that's possible with ASP which doesn't help at all.

Second solution for me was using onClick (again) to open a new window with a page that loads up the data into the database then closes, leaving the PayPal page. However, obviously once again it's not submitted.

I could do it so you press a Submit button then it takes you to a seperate page with the PayPal button telling you to click to continue but I seriously want to avoid that as it may put people off.

Many thanks in advance!

Bullschmidt
09-07-2008, 04:29 PM
You kept mentioning onClick (apparently client-side JavaScript) so thought that this article I had written about post-back pages (keeping code server-side as much as possible) might hopefully be able to help expand your options:

Classic ASP Design Tips - Post Back Page
http://www.bullschmidt.com/devtip-postbackpage.asp