Jump to content

storing intermediate results for later display in a later page.


wejofost

Recommended Posts

I have 5 pages that collect data ( a row of between 4 and 6 items per page )

I wish to display the collected data ( a row of between 4 and 6 items from each page ) in a table of results in the final "display" page.

 

How can I store the intermediate result during processing other pages for subsequent display on the last page.

 

Do I use Global data stores or do I have to use a MySql database?

 

Wej Parry

Link to comment
Share on other sites

Use sessions

 

At the beginning of each script put

<?php
session_start();
?>

 

The each item you want to start do

<?php
$_SESSION['someitem'] = $_POST['someitem'];
?>

 

In the final page do

<?php
$someitem = $_SESSION['someitem'];
$another = $_SESSION['another'];
//
// etc
//
?>

 

Ken

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.