Hugin Posted March 2, 2008 Share Posted March 2, 2008 Hello, this is my first post on these board, and hopefully my question will be easy to answer. I'm an intermediate level php programmer and I'm working with stuff I've never touched before. I've got a handmade shopping cart set up where basically the user has the option of which items they wish to pay for now (so they can pay for others they've ordered at a later time, not everything at once). The form gets submitted to one php page where the script will sift through these variables and adds some to a database. Now the thing I'm having trouble with is, after it adds things to the database, I also want this page to resubmit the POST variables sent via the original form to PayPal. I want to do all this without having to make the user hit submit again because that'll piss them off. From what I've seen, using header('Location:') won't submit any POST information and I'm not really seeing many options on how to do this. Thanks for any help guys, I appreciate it Quote Link to comment Share on other sites More sharing options...
p2grace Posted March 2, 2008 Share Posted March 2, 2008 Create the form using all hidden fields then use javascript to submit the form. Look here for an example. http://www.javascript-coder.com/javascript-form/javascript-form-submit.phtml Quote Link to comment Share on other sites More sharing options...
Hugin Posted March 2, 2008 Author Share Posted March 2, 2008 Oh hey, I never even thought about using JavaScript >_< I kept looking at curl and stuff for php only. Thanks for the help, I think this'll work great Quote Link to comment Share on other sites More sharing options...
p2grace Posted March 2, 2008 Share Posted March 2, 2008 No problem, if you need any further help just let me know 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.