I have two forms on my webpage - one that writes certain information to a database, and one that lets you pay using Paypal (the page I have is for buying a product).
Right now, there are the two forms, but I want to make it so that both submit at the same time. That is, when you click the Paypal button, it posts both forms.
Can I put them both in the same post method somehow? Or how can I solve this problem?
I want it so a customer can buy something, and the Paypal post executes (for the actual payment) but the page also writes to my own database with the information of the customer.
I'm fine with using jQuery and/or any libraries.
Here's my JS: http://slexy.org/view/s2u2Jsr2RI
Here's my HTML: http://slexy.org/view/s2NgzHRES4
Here's my post.php: http://slexy.org/view/s208WfbKso