optikalefx Posted October 20, 2010 Share Posted October 20, 2010 I have a paypal shopping cart form. Right now the form submits to paypals normal site and works fine. But the problem is the user can use firebug and change the price before sending to paypal. So i want the form to submit to my php script, where ill whatever is in the session, not what was posted, create an NVP string from that post, then POST that to paypal. I thought i could do this with cURL, but cURL always responds, it never actually takes the user to paypal with post. Is there a way to mimic what a form submit does completely in PHP? Link to comment https://forums.phpfreaks.com/topic/216334-how-to-make-curl-redirect-the-user/ Share on other sites More sharing options...
optikalefx Posted October 20, 2010 Author Share Posted October 20, 2010 turns out with paypal you can send it all in the url header("Location: https://www.paypal.com/cgi-bin/webscr$nvp"); Link to comment https://forums.phpfreaks.com/topic/216334-how-to-make-curl-redirect-the-user/#findComment-1124258 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.