If I use the code generated by the button factory, my submit button works fine. But how do I call a javascript file first (to store some of the form data to a database) and then redirect to PayPal? I can get either one to work separately, but not together.
... View more