jwhite68 Posted May 30, 2007 Share Posted May 30, 2007 I am working with a payment gateway, which sends its response with a specific php page. Lets say response.php, with parameter ?val=data. ie http://abc.com/response.php?val=data. On this php page, I want to perform some processing, but ultimately dont want to display any html form with this page. I need some way to perform my processing on this php page, then immediately redirect to another php to display the next form, with the results. Can anyone advise on how this is achieved? So for example, I want it to then invoke display.php?mode=1&conf=1, which has the formal display with all the results. All this with NO user input. Quote Link to comment https://forums.phpfreaks.com/topic/53596-passing-control-onto-another-form/ Share on other sites More sharing options...
chigley Posted May 30, 2007 Share Posted May 30, 2007 cURL has the ability to access other sites and perform actions externally without the user knowing. I suggest you read up on that Quote Link to comment https://forums.phpfreaks.com/topic/53596-passing-control-onto-another-form/#findComment-264919 Share on other sites More sharing options...
jwhite68 Posted May 30, 2007 Author Share Posted May 30, 2007 Since it will always be on my site, perhaps it can be done without CURL? Quote Link to comment https://forums.phpfreaks.com/topic/53596-passing-control-onto-another-form/#findComment-264926 Share on other sites More sharing options...
chigley Posted May 30, 2007 Share Posted May 30, 2007 Sorry, I completely misunderstood your question. My bad. <?php session_start(); // Start the sessions ob_start(); // Start an output buffer // Do all your processing $result = ob_end_flush(); // $result now contains what would be outputted from your processing $_SESSION["result"] = $result; // This variable can be accessed from the next page header("Location: display.php"); // Now we can redirect you to display.php ?> Now in your second page: <?php session_start(); echo $_SESSION["result"]; ?> Quote Link to comment https://forums.phpfreaks.com/topic/53596-passing-control-onto-another-form/#findComment-264928 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.