Jump to content


Sending data to multiple pages

  • Please log in to reply
2 replies to this topic

#1 chadconger

  • Members
  • Pip
  • Newbie
  • 3 posts

Posted 24 August 2006 - 07:53 PM

Is there a way to send form data to multiple pages?

#2 hitman6003

  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 24 August 2006 - 11:59 PM

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).

#3 drkstr

  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts
  • LocationSeattle, WA - USA

Posted 25 August 2006 - 02:36 AM

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.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users