cooldude832 Posted July 14, 2008 Share Posted July 14, 2008 I have a pre existing site set up that uses some free form processors (They proecss on a remote server) I want to add in some additinoal custom proecssing before it goes remote so it be like this Fill out form -> Go to my custom processor -> Send identical post data to the remote page How can I push that post data straight through? Do I need a cURL script to do so? something like <?php $fields = ""; foreach($_POST as $key=> $value){ if(!empty($fields)){$fields .= "&"; $fields .= $key."=".$value; } ?> and then use that $fields as my POSTFIELDS for a cURL to the remote? Or is there a better way??? Link to comment https://forums.phpfreaks.com/topic/114710-sending-post-data-from-1-page-to-another/ Share on other sites More sharing options...
cooldude832 Posted July 14, 2008 Author Share Posted July 14, 2008 or can I add on to my custom processor header("location: REMOTEPAGE.php"); and the post data will still push??? Link to comment https://forums.phpfreaks.com/topic/114710-sending-post-data-from-1-page-to-another/#findComment-589858 Share on other sites More sharing options...
GingerRobot Posted July 14, 2008 Share Posted July 14, 2008 Do I need a cURL script to do so? That's the way i'd do it. Link to comment https://forums.phpfreaks.com/topic/114710-sending-post-data-from-1-page-to-another/#findComment-589916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.