chadconger Posted August 24, 2006 Share Posted August 24, 2006 Is there a way to send form data to multiple pages? Link to comment https://forums.phpfreaks.com/topic/18577-sending-data-to-multiple-pages/ Share on other sites More sharing options...
hitman6003 Posted August 24, 2006 Share Posted August 24, 2006 Why has this question been asked so many times lately? This is the third or fourth time I've seen it in the same number of days.Anyway, no. Why do you want to send to multiple pages? Create one page that does all of your processing. If you need to send data to another page, for payment information or some such, use cURL (http://www.php.net/curl) or sockets (http://www.php.net/fsockopen). Link to comment https://forums.phpfreaks.com/topic/18577-sending-data-to-multiple-pages/#findComment-80116 Share on other sites More sharing options...
drkstr Posted August 25, 2006 Share Posted August 25, 2006 You could create an object which gets past an array of pages you want it to go to, and the data you want to send. Then you would serialize the object and store it in a $_SESSION variable. At the end of each page, you would put a quick check to see if the $_SESSION variable is empty, if not call a method in your object which pops the next page off the array and sends itself along to the next page (taking the data with it). When nothiing is left in the array, empty out the session variable.Clunky, but works.regards,...drkstr Link to comment https://forums.phpfreaks.com/topic/18577-sending-data-to-multiple-pages/#findComment-80149 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.