Jump to content

Sending data to multiple pages


chadconger

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.