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. Quote Link to comment 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. Quote Link to comment 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") Quote Link to comment Share on other sites More sharing options...
saco721 Posted November 5, 2007 Author Share Posted November 5, 2007 thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.