saco721 Posted November 2, 2007 Share Posted November 2, 2007 Hi, I need to execute an sql query, then a paypal script from the same form. How do edit the code below to do this? <?php <form method=\"post\" action=\"https://www.sandbox.paypal.com/cgi-bin/webscr\" target =\"paypal\"> </form> ?> any help would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/75816-how-do-i-run-more-than-1-action-script-from-a-form/ Share on other sites More sharing options...
JasonLewis Posted November 3, 2007 Share Posted November 3, 2007 well.. there may be an easier way. lol. but here is a solution, i hope: 1. make the action point to the php page which has your query.. 2. have in that php page a body onload command and make it submit a second form. 3. the second form will have all hidden text boxes with the values from the previous form. 4. make this form go to the paypal site. i hope i made that clear, lol. Link to comment https://forums.phpfreaks.com/topic/75816-how-do-i-run-more-than-1-action-script-from-a-form/#findComment-384052 Share on other sites More sharing options...
btherl Posted November 3, 2007 Share Posted November 3, 2007 Another option is to use curl to submit the data to paypal (google "curl php") Link to comment https://forums.phpfreaks.com/topic/75816-how-do-i-run-more-than-1-action-script-from-a-form/#findComment-384092 Share on other sites More sharing options...
saco721 Posted November 5, 2007 Author Share Posted November 5, 2007 thanks! Link to comment https://forums.phpfreaks.com/topic/75816-how-do-i-run-more-than-1-action-script-from-a-form/#findComment-384982 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.